Skip to content

fix(parser): return error for unknown parser type#315

Open
jessefaler wants to merge 1 commit into
pterodactyl:developfrom
jessefaler:fix/parser-error
Open

fix(parser): return error for unknown parser type#315
jessefaler wants to merge 1 commit into
pterodactyl:developfrom
jessefaler:fix/parser-error

Conversation

@jessefaler
Copy link
Copy Markdown

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant