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

[6.x] Remove try/catch for short url so the appropriate errors will be prop… #13179

Merged

Conversation

stacey-gammon
Copy link
Contributor

…agated to the UI (#13004)

  • Remove try/catch for short url so the appropriate errors will be propagated to the UI

  • Simply ensure the error is a Boom error by wrapping it, but keep the original error details.

  • Boom.wrap can't handle non Error instances, as exist in some of the tests.

  • Only support Error objects, and check both status and statusCode

  • fix test

  • Fix test errors for reals this time

  • Break out status and statusCode short url error tests

…agated to the UI (elastic#13004)

* Remove try/catch for short url so the appropriate errors will be propagated to the UI

* Simply ensure the error is a Boom error by wrapping it, but keep the original error details.

* Boom.wrap can't handle non Error instances, as exist in some of the tests.

* Only support Error objects, and check both status and statusCode

* fix test

* Fix test errors for reals this time

* Break out status and statusCode short url error tests
@stacey-gammon stacey-gammon merged commit 17dc4e6 into elastic:6.x Jul 28, 2017
@stacey-gammon stacey-gammon deleted the 6.x/fix/show-short-url-errors branch October 24, 2017 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant