Skip to content

Commit

Permalink
Status for KeychainError
Browse files Browse the repository at this point in the history
  • Loading branch information
flypaper0 committed Oct 31, 2023
1 parent 9dd5dd0 commit 2e7b778
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/WalletConnectKMS/Keychain/KeychainError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ public enum KeychainError: Error, LocalizedError {
}
}

public var status: OSStatus {
switch self {
case .itemNotFound:
return errSecItemNotFound
case .other(let status):
return status
}
}

public var errorDescription: String? {
switch self {
case .itemNotFound:
Expand Down

0 comments on commit 2e7b778

Please sign in to comment.