3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-01 17:16:39 +02:00

CGrammar: Show bad parse error to users

This commit is contained in:
Pragmatic Software 2014-06-22 06:11:11 +00:00
parent d97f8b2fd6
commit c1de5f6c97
2 changed files with 2 additions and 2 deletions

View File

@ -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",
};

View File

@ -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));
}