diff --git a/gpui/src/platform/mac/platform.rs b/gpui/src/platform/mac/platform.rs index 1f1056b3a8..5d5e69263d 100644 --- a/gpui/src/platform/mac/platform.rs +++ b/gpui/src/platform/mac/platform.rs @@ -523,7 +523,7 @@ impl platform::Platform for MacPlatform { let status = SecItemCopyMatching(attrs.as_concrete_TypeRef(), &mut result); match status { security::errSecSuccess => {} - security::errSecItemNotFound => return None, + security::errSecItemNotFound | security::errSecUserCanceled => return None, _ => panic!("reading password failed: {}", status), } @@ -657,6 +657,7 @@ mod security { } pub const errSecSuccess: OSStatus = 0; + pub const errSecUserCanceled: OSStatus = -128; pub const errSecItemNotFound: OSStatus = -25300; }