sqlx-cli: Exit with code 1 on error.

This commit is contained in:
aspen 2020-07-29 14:49:49 -04:00 committed by Ryan Leckey
parent 96f4a43bb8
commit 94413bd830

View File

@ -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);
}
}