mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01: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
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 668,
|
||||
BUILD_REVISION => 669,
|
||||
BUILD_DATE => "2014-06-21",
|
||||
};
|
||||
|
||||
|
@ -67,7 +67,7 @@ foreach my $arg (@ARGV) {
|
||||
$text =~ s/\s+$//g;
|
||||
|
||||
if(length $text) {
|
||||
die "Bad parse: $text";
|
||||
print "Bad parse at: $text";
|
||||
} else {
|
||||
print join('', flatten($result));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user