From 49289c96774bff349fa28c0938032c615fbde669 Mon Sep 17 00:00:00 2001 From: steven-omaha <35634100+steven-omaha@users.noreply.github.com> Date: Thu, 23 Feb 2023 13:13:37 +0100 Subject: [PATCH] improve outer error message --- crates/main/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/main/main.rs b/crates/main/main.rs index 8dfe352..a2024c6 100644 --- a/crates/main/main.rs +++ b/crates/main/main.rs @@ -35,7 +35,7 @@ fn handle_final_result(result: Result<()>) -> ExitCode { let root_e = e.root_cause().downcast_ref(); match root_e { Some(pacdef_core::Error::NoPackagesFound) => ExitCode::FAILURE, - Some(_) => ExitCode::FAILURE, + Some(_) => result.context("unknown pacdef error type").report(), None => result.report(), } }