diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/handlers.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/handlers.rs b/src/handlers.rs index a9299fe..3e8bafd 100644 --- a/src/handlers.rs +++ b/src/handlers.rs | |||
@@ -189,7 +189,10 @@ pub async fn authenticate_user( | |||
189 | 189 | ||
190 | let res_json = warp::reply::json(&GradeCoinResponse { | 190 | let res_json = warp::reply::json(&GradeCoinResponse { |
191 | res: ResponseType::Error, | 191 | res: ResponseType::Error, |
192 | message: "Given IV has invalid length, use a 128 bit IV".to_owned(), | 192 | message: format!( |
193 | "Could not create a cipher from given 'temp_key': {:?} and 'IV': {}", | ||
194 | &temp_key, &request.iv | ||
195 | ), | ||
193 | }); | 196 | }); |
194 | 197 | ||
195 | return Ok(warp::reply::with_status(res_json, StatusCode::BAD_REQUEST)); | 198 | return Ok(warp::reply::with_status(res_json, StatusCode::BAD_REQUEST)); |