Skip to content

Commit

Permalink
more error context
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpesp committed Apr 21, 2022
1 parent 6b0a10f commit 4752359
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nexus/src/sagas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)))
},
)?))
}
Expand Down

0 comments on commit 4752359

Please sign in to comment.