Permalink
Browse files

improve error message about not allowed delims

  • Loading branch information...
1 parent 4809918 commit e882556845fdc5fd1453415c1710de219ecf785b @FROGGS FROGGS committed Mar 5, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/HLL/Grammar.nqp
View
@@ -303,7 +303,8 @@ position C<pos>.
self.panic('Alphanumeric character is not allowed as a delimiter');
}
if nqp::iscclass(nqp::const::CCLASS_WHITESPACE, $start, 0) {
- self.panic('Whitespace character is not allowed as a delimiter');
+ my $code := nqp::sprintf('%X', [nqp::ord($start)]);
+ self.panic('Whitespace character (0x' ~ $code ~ ') is not allowed as a delimiter');
}
# assume stop delim is same as start, for the moment

0 comments on commit e882556

Please sign in to comment.