r738: Use same error message format as is used by compilers when reporting
authorJelmer Vernooij <jelmer@samba.org>
Fri, 14 May 2004 18:35:51 +0000 (18:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:53:46 +0000 (12:53 -0500)
syntax errors (some editors parse these strings and jump to the erroneous
   line directly)
(This used to be commit 6857efacccb1af69abd46e8867a0b4b3c26801db)

source4/build/pidl/idl.pm
source4/build/pidl/idl.yp

index ee7fd8d9cf436509a880861cd9cc0fad95f09988..e469c0fdc8ce0d8cdfcddd4f715250a422720185 100644 (file)
@@ -1917,7 +1917,7 @@ sub _Error {
        my $last_token = $_[0]->YYData->{LAST_TOKEN};
        my $file = $_[0]->YYData->{INPUT_FILENAME};
        
-       print "Syntax error at $file:$line near '$last_token'\n";
+       print "$file:$line: Syntax error near '$last_token'\n";
 }
 
 sub _Lexer($)
index 93446dc8c12f0ca719fba051399c16d67842b549..cb293de2725a2dbc312520caa82c9f9f4aa886e3 100644 (file)
@@ -247,7 +247,7 @@ sub _Error {
        my $last_token = $_[0]->YYData->{LAST_TOKEN};
        my $file = $_[0]->YYData->{INPUT_FILENAME};
        
-       print "Syntax error at $file:$line near '$last_token'\n";
+       print "$file:$line: Syntax error near '$last_token'\n";
 }
 
 sub _Lexer($)