How to capture errors from the hook

4 views
Skip to first unread message

foysal osmany

unread,
Nov 19, 2015, 3:36:26 PM11/19/15
to LoopbackJS
I am using operational hooks "Before save", "After save" but I do not know how to get the error from these 2 hooks. 

I can see the errors when debugging but the error is not passed as a response to api.

Is there is any way to check if there is any error on saving by looking at the context object?
Reply all
Reply to author
Forward
0 new messages