Skip to content

Commit 2120ec2

Browse files
committed
fix: reformat err message title
1 parent 2dd0845 commit 2120ec2

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

adapter/src/ethereum/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ impl fmt::Display for VerifyError {
6666
PublicKeyRecovery(err) => {
6767
write!(f, "Recovering the public key from the signature: {}", err)
6868
}
69-
StateRootDecoding(err) => write!(f, "Decoding the hex of the state root: {}", err),
70-
SignatureDecoding(err) => write!(f, "Decoding the hex of the signature: {}", err),
69+
StateRootDecoding(err) => write!(f, "Decoding state root: {}", err),
70+
SignatureDecoding(err) => write!(f, "Decoding signature: {}", err),
7171
SignatureNotPrefixed => write!(f, "Signature is not prefixed with `0x`"),
7272
}
7373
}

primitives/src/adapter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<AE: AdapterErrorKind> fmt::Display for Error<AE> {
3737
Error::Authentication(error) => write!(f, "Authentication: {}", error),
3838
Error::Authorization(error) => write!(f, "Authorization: {}", error),
3939
Error::InvalidChannel(error) => write!(f, "{}", error),
40-
Error::Adapter(error) => write!(f, "Adapter specific: {}", error),
40+
Error::Adapter(error) => write!(f, "Adapter: {}", error),
4141
Error::Domain(error) => write!(f, "Domain: {}", error),
4242
Error::LockedWallet => write!(f, "You must `.unlock()` the wallet first"),
4343
}

validator_worker/src/error.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub enum TickError {
1111
impl fmt::Display for TickError {
1212
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1313
match self {
14-
TickError::TimedOut(err) => write!(f, "Tick timed out ({})", err),
14+
TickError::TimedOut(err) => write!(f, "Tick TimedOut: ({})", err),
1515
TickError::Tick(err) => write!(f, "Tick: {}", err),
1616
}
1717
}
@@ -31,13 +31,9 @@ impl<AE: AdapterErrorKind> fmt::Display for Error<AE> {
3131
use Error::*;
3232

3333
match self {
34-
SentryApi(err) => write!(f, "Sentry Api: {}", err),
35-
LeaderTick(channel_id, err) => {
36-
write!(f, "Error for Leader tick of {:#?}: {}", channel_id, err)
37-
}
38-
FollowerTick(channel_id, err) => {
39-
write!(f, "Error for Follower tick of {:#?}: {}", channel_id, err)
40-
}
34+
SentryApi(err) => write!(f, "SentryApi: {}", err),
35+
LeaderTick(channel_id, err) => write!(f, "LeaderTick {:#?}: {}", channel_id, err),
36+
FollowerTick(channel_id, err) => write!(f, "FollowerTick {:#?}: {}", channel_id, err),
4137
}
4238
}
4339
}

0 commit comments

Comments
 (0)