refactor: non-zero exit code when model call fails (#518)

pull/519/head
sigoden 4 weeks ago committed by GitHub
parent b4a40e3fed
commit 665693ccf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -131,7 +131,8 @@ async fn main() -> Result<()> {
true => start_interactive(&config).await,
} {
let highlight = stderr().is_terminal() && config.read().highlight;
render_error(err, highlight)
render_error(err, highlight);
std::process::exit(1);
}
Ok(())
}

Loading…
Cancel
Save