Skip to content

Commit

Permalink
replace "" with transparent
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
  • Loading branch information
BugenZhao committed Feb 15, 2024
1 parent 37f6c95 commit cfaeeed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/connector/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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",
Expand Down

0 comments on commit cfaeeed

Please sign in to comment.