Skip to content

Commit

Permalink
refactor(patterns): Prepare for compression
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Sep 7, 2024
1 parent 79e90eb commit 1e4653e
Show file tree
Hide file tree
Showing 4 changed files with 292 additions and 160 deletions.
2 changes: 1 addition & 1 deletion packages/patterns/src/keys/checkKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ const checkKeyInternal = (val, check) => {
}
case 'error':
case 'promise': {
return check(false, X`A ${q(passStyle)} cannot be a key`);
return check(false, X`A ${q(passStyle)} cannot be a key: ${val}`);
}
default: {
// Unexpected tags are just non-keys, but an unexpected passStyle
Expand Down
Loading

0 comments on commit 1e4653e

Please sign in to comment.