mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 07:21:08 +00:00
sqlx-cli: Exit with code 1 on error.
This commit is contained in:
parent
96f4a43bb8
commit
94413bd830
@ -9,5 +9,6 @@ async fn main() {
|
||||
// no special handling here
|
||||
if let Err(error) = sqlx_cli::run(Opt::from_arg_matches(&matches)).await {
|
||||
println!("{} {}", style("error:").bold().red(), error);
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user