Skip to content

Commit 4530dec

Browse files
committed
Merge branch 'tim/update_required' into 'master'
Add UpgradeRequired error See merge request TankerHQ/sdk-rust!15
2 parents f830719 + 7b86fd6 commit 4530dec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/error.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ pub enum ErrorCode {
3434
DeviceRevoked = 12,
3535
/// There was a conflict with a concurrent operation from another device/user. Please try again
3636
Conflict = 13,
37+
/// A new version of the SDK is required to perform the requested action
38+
UpgradeRequired = 14,
3739

3840
#[num_enum(default)]
3941
UnknownError = u32::max_value(),
@@ -106,6 +108,7 @@ impl From<Error> for futures::io::Error {
106108
| ErrorCode::DecryptionFailed
107109
| ErrorCode::TooManyAttempts
108110
| ErrorCode::Conflict
111+
| ErrorCode::UpgradeRequired
109112
| ErrorCode::UnknownError => ErrorKind::Other,
110113
};
111114
futures::io::Error::new(kind, e)

0 commit comments

Comments
 (0)