diff --git a/src/ctl/src/cmd_impl/meta/check.rs b/src/ctl/src/cmd_impl/meta/check.rs index 037bcd2c1c996..5f62fb9450f50 100644 --- a/src/ctl/src/cmd_impl/meta/check.rs +++ b/src/ctl/src/cmd_impl/meta/check.rs @@ -22,11 +22,11 @@ pub async fn graph_check(endpoint: String) -> anyhow::Result<()> { let txn = conn.begin().await?; match CatalogController::graph_check(&txn).await { Ok(_) => { - println!("all integrity check passed!"); + println!("integrity check passed!"); exit(0); } - Err(e) => { - println!("integrity check failed! {:?}", e); + Err(_) => { + println!("integrity check failed!"); exit(1); } }