Skip to content

Commit 9ee3063

Browse files
committed
add rabbit suggestion
1 parent dc9134e commit 9ee3063

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ pub enum ServiceError {
8686
InvalidDisputeId,
8787
InvalidDisputeStatus,
8888
InvalidPayload,
89+
UnexpectedError(String),
8990
}
9091

9192
#[derive(Debug, PartialEq, Eq)]
@@ -139,6 +140,7 @@ impl fmt::Display for ServiceError {
139140
ServiceError::InvalidDisputeId => write!(f, "Invalid dispute id"),
140141
ServiceError::InvalidDisputeStatus => write!(f, "Invalid dispute status"),
141142
ServiceError::InvalidPayload => write!(f, "Invalid payload"),
143+
ServiceError::UnexpectedError(e) => write!(f, "Unexpected error: {}", e),
142144
}
143145
}
144146
}

0 commit comments

Comments
 (0)