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:
d1920c7
)
bundles: Use ReloadError for reload
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 10 May 2021 00:04:41 +0000
(
01:04
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 10 May 2021 00:04:41 +0000
(
01:04
+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 c4d5c63972c13ab49e18e4b4726fbf04fab7eba4..3e84ffb6b2fccb3ea20d6d5555135548bc6399d5 100644
(file)
--- a/
src/bundles.rs
+++ b/
src/bundles.rs
@@
-475,13
+475,12
@@
impl InstanceBundles {
ib.bundles.resize_with(iu+1, default);
}
- let parsed = match parse_bundle(id, &mut file, fpath) {
+ let parsed = match parse_bundle
::<ReloadError>
(id, &mut file, fpath) {
Ok(y) => y,
- Err(
LE::BadBundle(why)
) => {
- debug!("bundle file {:?}
bad {}", &fpath, why
);
+ Err(
e
) => {
+ debug!("bundle file {:?}
reload failed {}", &fpath, e
);
continue;
}
- Err(LE::IE(ie)) => throw!(ie),
};
incorporate_bundle(&mut ib, ig, id, parsed)?;