summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-05-14 18:35:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:46 -0500
commitb79455e0d24690f5bdb0fc3f78376f2249289f1c (patch)
treeafd2b5ceeafd64ba902c7dd47230920471448ed3
parentfb011fa40463057047420688c00462c49c2b0c28 (diff)
downloadsamba-b79455e0d24690f5bdb0fc3f78376f2249289f1c.tar.gz
samba-b79455e0d24690f5bdb0fc3f78376f2249289f1c.tar.bz2
samba-b79455e0d24690f5bdb0fc3f78376f2249289f1c.zip
r738: Use same error message format as is used by compilers when reporting
syntax errors (some editors parse these strings and jump to the erroneous line directly) (This used to be commit 6857efacccb1af69abd46e8867a0b4b3c26801db)
-rw-r--r--source4/build/pidl/idl.pm2
-rw-r--r--source4/build/pidl/idl.yp2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/build/pidl/idl.pm b/source4/build/pidl/idl.pm
index ee7fd8d9cf..e469c0fdc8 100644
--- a/source4/build/pidl/idl.pm
+++ b/source4/build/pidl/idl.pm
@@ -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($)
diff --git a/source4/build/pidl/idl.yp b/source4/build/pidl/idl.yp
index 93446dc8c1..cb293de272 100644
--- a/source4/build/pidl/idl.yp
+++ b/source4/build/pidl/idl.yp
@@ -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($)