Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Basic FAILGOAL implementation so we at least get a bit better error.
  • Loading branch information
jnthn committed Nov 18, 2011
1 parent 5a3575c commit 0b22858
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/QRegex/Cursor.nqp
Expand Up @@ -323,6 +323,13 @@ role NQPCursorRole {
$cur;
}

method FAILGOAL($goal) {
my $sub := Q:PIR {
%r = getinterp
%r = %r['sub';1]
};
pir::die("Unable to parse " ~ ~$sub ~ ", couldn't find final $goal");
}
}


Expand Down

0 comments on commit 0b22858

Please sign in to comment.