chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f334e7
)
bundles: Further improve error printing
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 15 May 2021 19:52:29 +0000
(20:52 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 15 May 2021 20:08:23 +0000
(21:08 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/bundles.rs
patch
|
blob
|
history
diff --git
a/src/bundles.rs
b/src/bundles.rs
index eff4e329f320753a9d7ff897be83bfa5f7232e37..ce970a5e1e95f5775ece0af3f22a0f255cbd2dc1 100644
(file)
--- 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:
//