Skip to content

Commit 22c2b83

Browse files
authored
when failing to load, print archive/dump path (#114)
1 parent c7bbc5f commit 22c2b83

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/cmd.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ pub fn subcommand(
5454

5555
if *archive != Archive::Ignored {
5656
if let Some(archive) = &args.archive {
57-
hubris.load(archive).context("failed to load archive")?;
57+
hubris.load(archive).with_context(|| {
58+
format!("failed to load archive \"{}\"", archive)
59+
})?;
5860
} else if let Some(dump) = &args.dump {
59-
hubris.load_dump(dump).context("failed to load dump")?;
61+
hubris.load_dump(dump).with_context(|| {
62+
format!("failed to load dump \"{}\"", dump)
63+
})?;
6064
}
6165
}
6266

0 commit comments

Comments
 (0)