8000 Properly resolve the promise in error hooks if returnHook is set. by daffl · Pull Request #769 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Properly resolve the promise in error hooks if returnHook is set.#769

Merged
daffl merged 3 commits intomasterfrom
returnhook-errors-767
Jan 2, 2018
Merged

Properly resolve the promise in error hooks if returnHook is set.#769
daffl merged 3 commits intomasterfrom
returnhook-errors-767

Conversation

@daffl
Copy link
Member
@daffl daffl commented Jan 2, 2018

When returning the hook object previously it was not possible to swallow the error. This should fix it.

Closes #767

@daffl daffl mentioned this pull request Jan 2, 2018
@Mattchewone
Copy link
Contributor

@daffl Big thanks for looking into this and fixing it so quickly!

@daffl
Copy link
Member Author
daffl commented Jan 2, 2018

Thanks for digging into the issue! Also prompted me to clean up how returnHook is being used (it really shouldn't be added to the hook object).

@daffl daffl merged commit 01bb12e into master Jan 2, 2018
@daffl daffl deleted the returnhook-errors-767 branch January 2, 2018 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swallowing Error Hook

2 participants

0