Fork me on GitHub
#ring
<
2018-01-08
>
weavejester03:01:36

@kumarshantanu in async middleware, exceptions can be thrown as usual or passed through raise.

weavejester03:01:18

The raise function should be used when you’re in a new thread.

weavejester03:01:59

In your case, you probably don’t need to do anything.

weavejester03:01:36

Async middleware generally only cares about errors if it’s consuming them for logging or display purposes.

Shantanu Kumar04:01:57

Thanks @weavejester Is 'respond' required btw? I just copied the style from your 2016 blog post.

weavejester14:01:15

@kumarshantanu For async? Yes. How else would it communicate the information?