Commit 1863e4d
committed
fix(parser): return error for unknown parser type
Previously, if the parser type did not match any valid types, Parse
would silently do nothing and return nil as if it succeeded. This
made it easy to miss typos or invalid parser types.
Now, an unknown parser type will return an error, making it easier
to catch mistakes.1 parent 3b968bb commit 1863e4d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
| 221 | + | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
0 commit comments