From cfaeeed148eafd34f4a6cf93c6c45c9c12a20608 Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Wed, 14 Feb 2024 14:13:15 +0800 Subject: [PATCH] replace "" with transparent Signed-off-by: Bugen Zhao --- src/connector/src/error.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/connector/src/error.rs b/src/connector/src/error.rs index 870c06e1b8df4..3dc10af3d8e7a 100644 --- a/src/connector/src/error.rs +++ b/src/connector/src/error.rs @@ -25,15 +25,15 @@ def_anyhow_newtype! { pub ConnectorError, // Common errors - std::io::Error => "", + std::io::Error => transparent, // Fine-grained connector errors - AccessError => "", - WireFormatError => "", - ConcurrentRequestError => "", - InvalidOptionError => "", - SinkError => "", - PbFieldNotFound => "", + AccessError => transparent, + WireFormatError => transparent, + ConcurrentRequestError => transparent, + InvalidOptionError => transparent, + SinkError => transparent, + PbFieldNotFound => transparent, // TODO(error-handling): Remove implicit contexts below and specify ad-hoc context for each conversion. @@ -43,7 +43,7 @@ def_anyhow_newtype! { csv::Error => "failed to parse csv", // Connector errors - opendal::Error => "", // believed to be self-explanatory + opendal::Error => transparent, // believed to be self-explanatory mysql_async::Error => "MySQL error", tokio_postgres::Error => "Postgres error",