Skip to content

Commit 642d73e

Browse files
committed
cli: suppress stack traces in user-facing errors
• [MSN] No active missions on the board • [EXC] Board idle, no stories queued or active • [HLT] 2 warnings, no structural errors detected
1 parent e455da5 commit 642d73e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

crates/keel-cli/src/main.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ mod command_regression_tests;
1313
#[cfg(test)]
1414
mod drift_tests;
1515

16-
use anyhow::Result;
17-
18-
fn main() -> Result<()> {
19-
cli::run()
16+
fn main() {
17+
if let Err(error) = cli::run() {
18+
eprintln!("Error: {error}");
19+
std::process::exit(1);
20+
}
2021
}

0 commit comments

Comments
 (0)