You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like both features: abort_internal_error() provides a more human readable error message and return status, and @async can be dead-simple. However, using both does not work due to how errors propagate out of mirai (a known property).
A workaround is to wrap most/all of the async'd endpoint in tryCatch, and return a non-error with enough details, and @then abort with the error message. For example, incomplete code:
I think if an error is to be propagated, then any @then (if defined) would be overridden with a method that propagates the error as intended. Thoughts?
Activity