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

Fix handling of login errors in the dummy app #2138

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

marcoow
Copy link
Member

@marcoow marcoow commented Mar 18, 2020

This fixes handling of login errors in the dummy app. Since version 3.0 we no longer reject with the error response's (JSON) body but with the response itself – the dummy app had not been updated accordingly yet.

@marcoow marcoow force-pushed the fix-login-error-handling-in-dummy-app branch from 6a83783 to 628d659 Compare March 18, 2020 12:10
@marcoow marcoow marked this pull request as ready for review March 18, 2020 12:10
@marcoow marcoow mentioned this pull request Mar 18, 2020
@Turbo87
Copy link
Collaborator

Turbo87 commented Mar 18, 2020

Since version 3.0 we no longer reject with the error response's (JSON) body but with the response itself

I'm confused by this. Do we not reject with an Error instance?

see https://eslint.org/docs/rules/prefer-promise-reject-errors

@marcoow
Copy link
Member Author

marcoow commented Mar 18, 2020

No, unfortunately we do not reject with an Error anywhere 😞.

@marcoow marcoow requested a review from Turbo87 March 18, 2020 13:26
@marcoow marcoow force-pushed the fix-login-error-handling-in-dummy-app branch from 318b108 to 5189c62 Compare March 19, 2020 08:48
@marcoow marcoow requested a review from Turbo87 March 19, 2020 09:03
@marcoow marcoow force-pushed the fix-login-error-handling-in-dummy-app branch from 5189c62 to 917b8bc Compare March 19, 2020 09:06
@marcoow marcoow force-pushed the fix-login-error-handling-in-dummy-app branch from 917b8bc to 1902463 Compare March 19, 2020 09:26
@marcoow marcoow requested a review from a team April 6, 2020 13:57
@marcoow marcoow force-pushed the fix-login-error-handling-in-dummy-app branch from 1902463 to 72e9533 Compare April 6, 2020 18:24
@marcoow marcoow force-pushed the fix-login-error-handling-in-dummy-app branch from 72e9533 to f42dc8e Compare April 7, 2020 09:20
@marcoow marcoow merged commit 01f0d8b into master Apr 8, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-login-error-handling-in-dummy-app branch April 8, 2020 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants