start propagating errors

This commit is contained in:
Dr. Matthias Ratajczak
2022-12-02 17:58:53 +01:00
parent 6d01abc79e
commit 7fb416815c
2 changed files with 15 additions and 12 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use anyhow::Result;
use anyhow::{Context, Result};
use pacdef::{args, Group, Pacdef};
@@ -6,6 +6,6 @@ fn main() -> Result<()> {
let args = args::get_args();
let groups = Group::load_from_dir();
let pacdef = Pacdef::new(args, groups);
pacdef.run_action_from_arg();
pacdef.run_action_from_arg().context("running action")?;
Ok(())
}