From cf86e15cb7a553d2d3a366b2abd735f3ba3782c8 Mon Sep 17 00:00:00 2001 From: Franklin Date: Wed, 31 Aug 2022 14:39:30 -0400 Subject: [PATCH] I should really add some unit tests, shouldn't I --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/utils/macros.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1486f6f..ba0f5e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "actix-web-utils" -version = "0.2.11" +version = "0.2.12" dependencies = [ "actix-web", "log", diff --git a/Cargo.toml b/Cargo.toml index 6dc1315..ec56e6e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "actix-web-utils" -version = "0.2.11" +version = "0.2.12" edition = "2021" authors = ["Franklin E. Blanco"] description = "Just some useful addons for actix web." diff --git a/src/utils/macros.rs b/src/utils/macros.rs index ca96bc1..c33ad3d 100644 --- a/src/utils/macros.rs +++ b/src/utils/macros.rs @@ -33,8 +33,8 @@ macro_rules! unwrap_or_return_handled_error { macro_rules! wrap_generic_error_in_wrapper { ( $e:expr ) => { match $e { - Ok(value) => value, - Err(error) => actix_web_utils::extensions::generic_error::GenericError::wrap(error), + Ok(value) => Ok(value), + Err(error) => Err(actix_web_utils::extensions::generic_error::GenericError::wrap(error)), } } } \ No newline at end of file