From cd29132a456efe8a60207cd3a437e23d65243aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Wed, 23 Oct 2024 12:06:07 +0100 Subject: [PATCH] print underlying error --- nym-api/src/node_status_api/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nym-api/src/node_status_api/models.rs b/nym-api/src/node_status_api/models.rs index 92e788047e..418535b999 100644 --- a/nym-api/src/node_status_api/models.rs +++ b/nym-api/src/node_status_api/models.rs @@ -437,7 +437,7 @@ pub enum NymApiStorageError { GatewayNotFound { identity: String }, // I don't think we want to expose errors to the user about what really happened - #[error("experienced internal database error")] + #[error("experienced internal database error: {0}")] InternalDatabaseError(#[from] sqlx::Error), // the same is true here (also note that the message is subtly different so we would be able to distinguish them)