Skip to content

Commit 94413bd

Browse files
Absolucymehcode
authored andcommitted
sqlx-cli: Exit with code 1 on error.
1 parent 96f4a43 commit 94413bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlx-cli/src/bin/sqlx.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ async fn main() {
99
// no special handling here
1010
if let Err(error) = sqlx_cli::run(Opt::from_arg_matches(&matches)).await {
1111
println!("{} {}", style("error:").bold().red(), error);
12+
std::process::exit(1);
1213
}
1314
}

0 commit comments

Comments
 (0)