mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
cargo-sqlx-cli: Fix exiting with 0 on failure
This commit is contained in:
parent
40f0a22765
commit
979ddeb222
@ -1,7 +1,7 @@
|
||||
use clap::{crate_version, AppSettings, FromArgMatches, IntoApp};
|
||||
use console::style;
|
||||
use sqlx_cli::Opt;
|
||||
use std::env;
|
||||
use std::{env, process};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
@ -17,5 +17,6 @@ async fn main() {
|
||||
|
||||
if let Err(error) = sqlx_cli::run(Opt::from_arg_matches(&matches)).await {
|
||||
println!("{} {}", style("error:").bold().red(), error);
|
||||
process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user