Utility function for mapping any error into a `500 Internal Server Error` response.
(err: E)
| 124 | /// Utility function for mapping any error into a `500 Internal Server Error` |
| 125 | /// response. |
| 126 | fn internal_error<E>(err: E) -> (StatusCode, String) |
| 127 | where |
| 128 | E: std::error::Error, |
| 129 | { |
| 130 | (StatusCode::INTERNAL_SERVER_ERROR, err.to_string()) |
| 131 | } |
nothing calls this directly
no outgoing calls
no test coverage detected