-
Notifications
You must be signed in to change notification settings - Fork 595
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
core: filter out duplicate error messages #1055
core: filter out duplicate error messages #1055
Conversation
To answer your earlier question, I guess this is why this whole idea was kinda weird. Maybe we should just revert the change and only special-case the error messages for Datastore? That's where we saw the vagueness originally. |
I think it's still useful, it was really only behaving oddly in Storage, but if you'd rather special-case Datastore, that's cool with me too. |
@@ -81,13 +81,19 @@ var ApiError = createErrorClass('ApiError', function(errorBody) { | |||
|
|||
if (errorBody.errors && errorBody.errors.length === 1) { | |||
messages.push(errorBody.errors[0].message); | |||
} else if (errorBody.response.body) { | |||
} else if (errorBody.response && errorBody.response.body) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I'm cool with keeping the feature if you see it's useful. Let's see what happens! |
installed array-uniq as dependency
Cool. Pretty sure the answer is yes, but did you confirm the system tests are happy now? |
Sure did! |
core: filter out duplicate error messages
In certain cases we are seeing duplicate error messages. This change will filter out any duplicates to avoid error messages like
Not Found - Not Found
.