Skip to content

Commit

Permalink
fix: exit with error code on error
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolv-Apneseth committed Nov 13, 2024
1 parent a256169 commit ccca48c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/src/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{env::var, io::Write};
use std::{env::var, io::Write, process::exit};

use clap::{Parser, Subcommand};
use enum_dispatch::enum_dispatch;
Expand Down Expand Up @@ -110,6 +110,7 @@ impl Cli {
}

writeln!(&mut stderr, "Error: {e}").expect("Failed to write to stderr");
exit(1);
}
}
}
Expand Down

0 comments on commit ccca48c

Please sign in to comment.