Skip to content

Commit

Permalink
cli: map bare BackendError to internal error
Browse files Browse the repository at this point in the history
The error message suggests that BackendError isn't a user error.
  • Loading branch information
yuja committed Feb 1, 2024
1 parent 016b8e0 commit 8f83acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/cli_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ impl From<CheckOutCommitError> for CommandError {

impl From<BackendError> for CommandError {
fn from(err: BackendError) -> Self {
user_error(format!("Unexpected error from backend: {err}"))
internal_error_with_message("Unexpected error from backend", err)
}
}

Expand Down

0 comments on commit 8f83acc

Please sign in to comment.