diff options
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.rs b/src/utils.rs index 70c8c11..dc08bc0 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -19,11 +19,11 @@ macro_rules! try_outcome_data { ($data:expr, $e:expr) => { match $e { ::rocket::outcome::Outcome::Success(val) => val, - ::rocket::outcome::Outcome::Failure(e) => { - return ::rocket::outcome::Outcome::Failure(::std::convert::From::from(e)) + ::rocket::outcome::Outcome::Error(e) => { + return ::rocket::outcome::Outcome::Error(::std::convert::From::from(e)) }, - ::rocket::outcome::Outcome::Forward(()) => { - return ::rocket::outcome::Outcome::Forward($data) + ::rocket::outcome::Outcome::Forward(e) => { + return ::rocket::outcome::Outcome::Forward(($data, e)) }, } }; |