From: Ian Jackson Date: Sat, 15 May 2021 19:52:29 +0000 (+0100) Subject: bundles: Further improve error printing X-Git-Tag: otter-0.6.0~258 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ac349d33621468b33ac8e40c8441775e248822cf;p=otter.git bundles: Further improve error printing Signed-off-by: Ian Jackson --- 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: //