diff options
Diffstat (limited to 'crates/mozart/src/commands/search.rs')
| -rw-r--r-- | crates/mozart/src/commands/search.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/search.rs b/crates/mozart/src/commands/search.rs index 6da85f9..d7be821 100644 --- a/crates/mozart/src/commands/search.rs +++ b/crates/mozart/src/commands/search.rs @@ -121,7 +121,9 @@ pub async fn execute( "<error>Unsupported format \"{format}\". See help for supported formats.</error>" ) ); - std::process::exit(1); + return Err(mozart_core::exit_code::bail_silent( + mozart_core::exit_code::GENERAL_ERROR, + )); } let (all_results, _total) = |
