From 4c6352509d39ae6a327a995a688096a642e62369 Mon Sep 17 00:00:00 2001 From: ityuany <519495771@qq.com> Date: Fri, 2 Aug 2024 19:58:59 +0800 Subject: [PATCH] review error handler --- crates/snm_utils/src/snm_error.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/crates/snm_utils/src/snm_error.rs b/crates/snm_utils/src/snm_error.rs index 7233e085..33594dcd 100644 --- a/crates/snm_utils/src/snm_error.rs +++ b/crates/snm_utils/src/snm_error.rs @@ -351,21 +351,7 @@ pub fn hack(error: SnmError) { } SnmError::SNMBinaryProxyFail { stderr: _ } => { - let message = format!( - r##" -错误: snm 二进制代理失败 - -方案: - 阅读错误日志,查看其他错误 - -解释: - 通常这是由其他错误引起的,并不是直接性的错误原因,你可以查看错误日志,查看其他错误。 - -注意: - 无 - "##, - ); - eprintln!("{}", message); + // Don't do anything. } SnmError::HttpStatusCodeUnOk @@ -408,7 +394,7 @@ pub fn friendly_error_message(error: SnmError) { match error { SnmError::SNMBinaryProxyFail { stderr: _ } => { - // TODO 🤔 how to show ? + // Don't do anything. } SnmError::NoDefaultNodeBinary => { let message = create_error_message(