diff --git a/src/api/mod.rs b/src/api/mod.rs index debf1a1..ca98000 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -51,7 +51,11 @@ pub async fn set_state( .parse::() .map_err(|err| AppError { message: None, - cause: Some(err.to_string()), + cause: Some(format!( + "error parsing open_string: {} for: {}", + err, + new_state_data.open_string.clone().unwrap() + )), error_type: AppErrorType::InternalError, }); Some(parsed_open.unwrap())