You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message that comes out when a pattern name contains a - is confusing and not helpful
Reproducer: grit.yaml
patterns:
- name: use-winstonlevel: errorbody: | `console.log($msg)` => `winston.log($msg)` where { $msg <: not within or { `it($_, $_)`, `test($_, $_)`, `describe($_, $_)` } }
Run:
$ grit apply use-winston
Your working tree currently has untracked changes and Grit will rewrite files in place. Do you want to proceed? yes
ERROR (code: 299) - Pattern syntax error at 1:1. If you hit this error while running grit apply on a pattern from the Grit standard library, try running grit init. If you are running a custom pattern, check out the docs at https://docs.grit.io/ for help with writing patterns.
The text was updated successfully, but these errors were encountered:
The error message that comes out when a pattern name contains a
-
is confusing and not helpfulReproducer:
grit.yaml
Run:
The text was updated successfully, but these errors were encountered: