1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

store error for error response

This commit is contained in:
Nikolay Kim
2017-11-25 09:03:44 -08:00
parent 940bc08aba
commit 64ade803f9
2 changed files with 19 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ impl fmt::Display for Error {
/// `HttpResponse` for `Error`
impl From<Error> for HttpResponse {
fn from(err: Error) -> Self {
err.cause.error_response()
HttpResponse::from_error(err)
}
}