Skip to content

Commit

Permalink
use only ActionError::action_failed
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpesp committed Apr 15, 2022
1 parent 6cb46a6 commit ef02727
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions nexus/src/sagas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1345,11 +1345,7 @@ async fn sdc_regions_ensure(
.datastore()
.volume_get(global_image.volume_id)
.await
.map_err(|e| {
ActionError::action_failed(Error::internal_error(
&e.to_string(),
))
})?;
.map_err(ActionError::action_failed)?;

debug!(
log,
Expand Down

0 comments on commit ef02727

Please sign in to comment.