From 66e99faafee815bca64e55d589d33005a3f3b7bb Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 7 Mar 2026 20:42:58 -0800 Subject: [PATCH] Throw the error for the attempt just made not the earlier one. --- Modules/Secrets/Sources/Secrets/CredentialsManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Secrets/Sources/Secrets/CredentialsManager.swift b/Modules/Secrets/Sources/Secrets/CredentialsManager.swift index 45b5ec65e..2dc0ff454 100644 --- a/Modules/Secrets/Sources/Secrets/CredentialsManager.swift +++ b/Modules/Secrets/Sources/Secrets/CredentialsManager.swift @@ -53,7 +53,7 @@ public struct CredentialsManager { let addStatus = SecItemAdd(query as CFDictionary, nil) if addStatus != errSecSuccess { - throw CredentialsError.unhandledError(status: status) + throw CredentialsError.unhandledError(status: addStatus) } }