From d3819b758870ad042545f17a54636b9ff37185db Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 16 Dec 2019 10:57:34 +0600 Subject: [PATCH] add ResponseError for redis Error --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 11a03dd26..5ee762010 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,6 +37,9 @@ pub enum Error { Disconnected, } +#[cfg(feature = "web")] +impl actix_web::ResponseError for Error {} + // re-export pub use redis_async::error::Error as RespError; pub use redis_async::resp::RespValue;