From 053019c8302c5a71e25dd2e5d9736f2fc83c63eb Mon Sep 17 00:00:00 2001 From: Shanicky Chen Date: Wed, 11 Dec 2024 18:36:31 +0800 Subject: [PATCH] Update graph_check output: simplify messages, remove error details Signed-off-by: Shanicky Chen --- src/ctl/src/cmd_impl/meta/check.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ctl/src/cmd_impl/meta/check.rs b/src/ctl/src/cmd_impl/meta/check.rs index 037bcd2c1c99..5f62fb9450f5 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); } }