Skip to content

Commit

Permalink
fix error format
Browse files Browse the repository at this point in the history
Signed-off-by: Naohiro Yoshida <[email protected]>
  • Loading branch information
Naohiro Yoshida committed Jul 1, 2024
1 parent db8bc97 commit ac72b6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions light-client/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,17 +380,17 @@ impl core::fmt::Display for ClientError {
client_id
} => write!(
f,
"LatestHeight: cause={}\n, client_id={}",
"LatestHeight: cause={}\nclient_id={}",
cause, client_id
),
ClientError::CreateClient {cause, client_state, consensus_sate} => write!(
f,
"CreateClient: cause={}\n, client_state={:?}, consensus_state={:?}",
"CreateClient: cause={}\nclient_state={:?}\nconsensus_state={:?}",
cause, client_state, consensus_sate
),
ClientError::UpdateClient{cause, client_id, message} => write!(
f,
"CreateClient: cause={}\n, client_id={:?}, message={:?}",
"CreateClient: cause={}\nclient_id={:?}\nmessage={:?}",
cause, client_id, message
),
ClientError::VerifyMembership {
Expand All @@ -402,7 +402,7 @@ impl core::fmt::Display for ClientError {
proof
} => write!(
f,
"VerifyMembership: cause={}\n, client_id={:?}, prefix={:?}, path={:?}, value={:?}, proof_height={:?}, proof={:?}",
"VerifyMembership: cause={}\nclient_id={:?}\nprefix={:?}\npath={:?}\nvalue={:?}\nproof_height={:?}\nproof={:?}",
cause, client_id, prefix, path, value, proof_height, proof
),
ClientError::VerifyNonMembership {
Expand All @@ -413,7 +413,7 @@ impl core::fmt::Display for ClientError {
proof
} => write!(
f,
"VerifyNonMembership: cause={}\n, client_id={:?}, prefix={:?}, path={:?}, proof_height={:?}, proof={:?}",
"VerifyNonMembership: cause={}\nclient_id={:?}\nprefix={:?}\npath={:?}\nproof_height={:?}\nproof={:?}",
cause, client_id, prefix, path, proof_height, proof
),
}
Expand Down

0 comments on commit ac72b6f

Please sign in to comment.