From e2f33b4b53db6297314773958b77e71213c2b461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Gu=CC=88ldenstein?= Date: Sun, 12 May 2024 17:35:43 +0200 Subject: [PATCH] some debug stuff --- src/api/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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())