-
Notifications
You must be signed in to change notification settings - Fork 331
Description
We recently bumped our Tide version from 0.8.1 to 0.14.0 which caused our response payloads/bodies for errors to be empty. This seems to be since we use tide::Errors for our "web-facing" results and due to an Into conversion that lose/discard the embedded error. In the tide::Result -> http_types::Response Into implementation, which discards the error that is converted into a Response here.
From the discussion in #452, which seems to be very similar to our issue, I understand it as you want to prevent people from accidentally returning internal error messages/details by not creating the full response from the error?
It would be great to have some way of using tide::Error for our user-facing errors without having to attach our own After middleware just to map the error message into the response body when our tide::Error already contains all the necessary data (status code + error message). Thanks!