better error line, return non-zero on errors

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2607 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-10-14 08:49:25 +00:00
parent 5fcce4da58
commit 17cf448f59

View file

@ -63,7 +63,8 @@ while(<LANG>) {
if( (($var eq "new") && $value && ($value !~ /^\"(.*)\" *$/)) ||
(($var eq "eng") && ($value !~ /^\"(.*)\" *$/)) ) {
print "missing quotes on line $line for ".$set{'id'}."\n";
print "$input:$line:missing quotes for ".$set{'id'}."\n";
$errors++;
next;
}
@ -101,3 +102,5 @@ MOO
close(CFILE);
close(HFILE);
exit $errors;