Throw the error for the attempt just made not the earlier one.

This commit is contained in:
Brent Simmons committed 2026-03-07 20:42:58 -08:00
1 parent a4874fdf32
commit 66e99faafe
1 file changed
+1 -1
@@ -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)
}
}