Skip to content

Commit

Permalink
minor error reporting improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Oct 4, 2024
1 parent edde0d5 commit 6a4380c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser/src/constraint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ impl Constraint {
// check if token is allowed
ensure!(
mask.is_allowed(sampled_token),
"sampled_token was not allowed by the mask"
"{} was not allowed by the mask",
self.tok_trie().token_dbg(sampled_token)
);

// if ff_tokens are not supported, just commit the sampled token
Expand Down

0 comments on commit 6a4380c

Please sign in to comment.