From 47523593d37ee4c4088618b869cf882ef3403fe4 Mon Sep 17 00:00:00 2001 From: James MacMahon Date: Wed, 20 Apr 2022 21:44:13 -0400 Subject: [PATCH] more error context --- nexus/src/sagas.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nexus/src/sagas.rs b/nexus/src/sagas.rs index 63a68c69f4..5e2447dd37 100644 --- a/nexus/src/sagas.rs +++ b/nexus/src/sagas.rs @@ -1393,9 +1393,10 @@ async fn sdc_regions_ensure( Some(Box::new(serde_json::from_str(volume.data()).map_err( |e| { - ActionError::action_failed(Error::internal_error( - &e.to_string(), - )) + ActionError::action_failed(Error::internal_error(&format!( + "failed to deserialize volume data: {}", + e, + ))) }, )?)) }