From ac349d33621468b33ac8e40c8441775e248822cf Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 15 May 2021 20:52:29 +0100 Subject: [PATCH] bundles: Further improve error printing Signed-off-by: Ian Jackson --- src/bundles.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bundles.rs b/src/bundles.rs index eff4e329..ce970a5e 100644 --- a/src/bundles.rs +++ b/src/bundles.rs @@ -66,10 +66,9 @@ pub struct NotBundle(&'static str); #[derive(Error,Debug)] pub enum LoadError { - BadBundle(BadBundle), - IE(#[from] IE), + #[error("bad bundle: {0}")] BadBundle(BadBundle), + #[error("internal error: {0}")] IE(#[from] IE), } -display_as_debug!{LoadError} // Bundle states: // -- 2.30.2