Skip to content

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

Merged
stacey-gammon merged 1 commit intoelastic:6.xfrom
stacey-gammon:6.x/fix/show-short-url-errors
Jul 28, 2017
Merged

[6.x] Remove try/catch for short url so the appropriate errors will be prop…#13179
stacey-gammon merged 1 commit intoelastic:6.xfrom
stacey-gammon:6.x/fix/show-short-url-errors

Conversation

@stacey-gammon
Copy link
Copy Markdown

…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 added the backport This PR is a backport of another PR label Jul 28, 2017
@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

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant