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 May 6, 2024
1 parent b09f8c0 commit f5b2d72
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

0 comments on commit f5b2d72

Please sign in to comment.