mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-15 15:37:22 +02:00
CGrammar: Show bad parse error to users
This commit is contained in:
parent
d97f8b2fd6
commit
c1de5f6c97
@ -13,7 +13,7 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 668,
|
BUILD_REVISION => 669,
|
||||||
BUILD_DATE => "2014-06-21",
|
BUILD_DATE => "2014-06-21",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ foreach my $arg (@ARGV) {
|
|||||||
$text =~ s/\s+$//g;
|
$text =~ s/\s+$//g;
|
||||||
|
|
||||||
if(length $text) {
|
if(length $text) {
|
||||||
die "Bad parse: $text";
|
print "Bad parse at: $text";
|
||||||
} else {
|
} else {
|
||||||
print join('', flatten($result));
|
print join('', flatten($result));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user