ok/jj
1
0
Fork 0
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:
Yuya Nishihara 2024-01-31 20:52:27 +09:00
parent ca322b761a
commit 818a885658

View file

@ -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)
}
}