diff options
Diffstat (limited to 'crates/mozart/src/commands/browse.rs')
| -rw-r--r-- | crates/mozart/src/commands/browse.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/browse.rs b/crates/mozart/src/commands/browse.rs index a88e503..3946acd 100644 --- a/crates/mozart/src/commands/browse.rs +++ b/crates/mozart/src/commands/browse.rs @@ -1,5 +1,6 @@ use clap::Args; use mozart_core::console_format; +use mozart_core::exit_code; use std::path::{Path, PathBuf}; use std::process::Command; @@ -78,7 +79,7 @@ pub async fn execute( } if exit_code != 0 { - std::process::exit(exit_code); + return Err(exit_code::bail_silent(exit_code)); } Ok(()) |
