forked from mirrors/jj
cli: map bare BackendError to internal error
The error message suggests that BackendError isn't a user error.
This commit is contained in:
parent
ca322b761a
commit
818a885658
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue