Closed ZackMattor closed 8 years ago
:+1:
There should probably be some tests around this... But that's all I can do today.
@jejacks0n I think we should handle 500 errors better. Because currently it tries to parse them as json and throws a json parse error. I'll see if I can come up with a good way to handle that. Probably just
if(xhr.status === 500) throw "Server returned a 500, check your hook's code."
…handle hook status codes.
Fixes #493
SuitesController
so it doesn't always return a 500 statusSuitesController
should return a 200 on success, and a 404 when the hook can't be found.