From e95548df82f7450fcebb698f270c5495c91fdc0e Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 22 Mar 2011 10:26:53 -0300 Subject: [PATCH] gemerge: when complaining about a command, show what it looks like --- gerber/gmerge | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerber/gmerge b/gerber/gmerge index ee3efe0..b80aca2 100755 --- a/gerber/gmerge +++ b/gerber/gmerge @@ -64,7 +64,7 @@ LINE: while (<>) { $c .= "G54D".$map{$1}."*\n"; next; } - die "unexpected command" unless /^X\d+Y\d+D0*[12]\*/; + die "unexpected command \"$_\"" unless /^X-?\d+Y-?\d+D0*[12]\*/; $c .= $_; }