From 818a885658e5b1e3cded9ff0c49ce534e10a48de Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Wed, 31 Jan 2024 20:52:27 +0900 Subject: [PATCH] cli: map bare BackendError to internal error The error message suggests that BackendError isn't a user error. --- cli/src/cli_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index 356911f62..825fa332c 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -230,7 +230,7 @@ impl From for CommandError { impl From for CommandError { fn from(err: BackendError) -> Self { - user_error(format!("Unexpected error from backend: {err}")) + internal_error_with_message("Unexpected error from backend", err) } }