include underlying error
This commit is contained in:
parent
081c48cfeb
commit
04bf07e4ab
@ -43,6 +43,14 @@ public struct StorageService {
|
||||
return statusCode >= 500
|
||||
}
|
||||
}
|
||||
|
||||
public var errorUserInfo: [String: Any] {
|
||||
var userInfo: [String: Any] = [OWSOperationIsRetryableKey: self.isRetryable]
|
||||
if case .networkError(_, let underlyingError) = self {
|
||||
userInfo[NSUnderlyingErrorKey] = underlyingError
|
||||
}
|
||||
return userInfo
|
||||
}
|
||||
}
|
||||
|
||||
/// An identifier representing a given storage item.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user