Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Friendlier error messages for two types of bad parameters. #45

Merged
merged 2 commits into from
Nov 2, 2015

Conversation

jeffposnick
Copy link
Contributor

R: @gauntface @addyosmani

This addresses two specific points that @gauntface raised in #43

We are obviously a long way from proactively checking for every permutation of bad parameters and displaying a custom error response for each, vs. relying on the default exception handling to pick up and log (sometimes generic) failures. @gauntface, if you have an example of a JS library that you feel does this well right now—proactively checks for every permutation of bad parameters and displays a bespoke message for each—then I'd appreciate it if you could point me to it and I'll try to follow a similar approach.

The documentation improvements that @jpmedley is looking into can also help prevent developers from providing unexpected parameters to begin with.

@addyosmani
Copy link
Contributor

This is a nice improvement to the current error logging. Deferring to @gauntface as he may have more detailed feedback.

@jeffposnick jeffposnick mentioned this pull request Oct 30, 2015
@gauntface
Copy link

LGTM Time for le merge.

jeffposnick added a commit that referenced this pull request Nov 2, 2015
Friendlier error messages for two types of bad parameters.
@jeffposnick jeffposnick merged commit 4803e63 into master Nov 2, 2015
@jeffposnick jeffposnick deleted the friendlier-errors branch November 2, 2015 16:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants