Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a second argument for a custom error message #2

Merged
merged 1 commit into from Jul 17, 2018

Conversation

kevinastone
Copy link
Contributor

E.g. nullthrows(getConfig(), 'Config not found')

This helps leverage nullthrows for more user-facing errors.

@kevinastone kevinastone force-pushed the master branch 2 times, most recently from db1f5b8 to ae48750 Compare July 15, 2018 17:06
E.g. `nullthrows(getConfig(), 'Config not found')`
@kevinastone
Copy link
Contributor Author

@zertosh
giphy

@zertosh zertosh merged commit d11ad23 into zertosh:master Jul 17, 2018
@zertosh
Copy link
Owner

zertosh commented Jul 17, 2018

Thanks! Published as nullthrows@1.0.2

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.

None yet

2 participants