Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error handling #4

Open
canibanoglu opened this issue Nov 27, 2019 · 0 comments
Open

Error handling #4

canibanoglu opened this issue Nov 27, 2019 · 0 comments

Comments

@canibanoglu
Copy link
Contributor

I feel like I'm being to strict with errors when methods are called on invalid states.
I could introduce a strict option with default set to false to console.warn in these cases instead of erroring out.

Is there a prettier way of having all these error condition checks without affecting the human parsability of the code?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant