fix: better sqlness show, replace the unwarp with better show message (#5400)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong
2025-01-20 04:59:39 +00:00
committed by GitHub
parent 5daac5fe3d
commit 80790daae0
+7 -1
View File
@@ -172,7 +172,13 @@ async fn main() {
store,
),
);
runner.run().await.unwrap();
match runner.run().await {
Ok(_) => println!("\x1b[32mAll sqlness tests passed!\x1b[0m"),
Err(e) => {
println!("\x1b[31mTest failed: {}\x1b[0m", e);
std::process::exit(1);
}
}
// clean up and exit
if !args.preserve_state {