We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f830719 + 7b86fd6 commit 4530decCopy full SHA for 4530dec
src/error.rs
@@ -34,6 +34,8 @@ pub enum ErrorCode {
34
DeviceRevoked = 12,
35
/// There was a conflict with a concurrent operation from another device/user. Please try again
36
Conflict = 13,
37
+ /// A new version of the SDK is required to perform the requested action
38
+ UpgradeRequired = 14,
39
40
#[num_enum(default)]
41
UnknownError = u32::max_value(),
@@ -106,6 +108,7 @@ impl From<Error> for futures::io::Error {
106
108
| ErrorCode::DecryptionFailed
107
109
| ErrorCode::TooManyAttempts
110
| ErrorCode::Conflict
111
+ | ErrorCode::UpgradeRequired
112
| ErrorCode::UnknownError => ErrorKind::Other,
113
};
114
futures::io::Error::new(kind, e)
0 commit comments