Skip to content

Commit 0a6d27a

Browse files
BirmacherAkostrapacska
authored andcommitted
labl error log fix (#85)
1 parent 33db810 commit 0a6d27a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

osxkeychain/osxkeychain.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ func FindIdentity(identityLabel string) ([]IdentityWithRefModel, error) {
212212

213213
labl, err := getCFDictValueUTF8String(aIdentityDictRef, C.CFTypeRef(convertCStringToCFString(lablCSting)))
214214
if err != nil {
215-
return nil, fmt.Errorf("FindIdentity: failed to get 'labl' property: %s", err)
215+
log.Warnf("FindIdentity: failed to get 'labl' property: %s", err)
216+
continue
216217
}
217218
log.Debugf("labl: %#v", labl)
218219
if labl != identityLabel {
@@ -222,7 +223,8 @@ func FindIdentity(identityLabel string) ([]IdentityWithRefModel, error) {
222223

223224
vrefRef, err := getCFDictValueRef(aIdentityDictRef, C.CFTypeRef(convertCStringToCFString(vrefCSting)))
224225
if err != nil {
225-
return nil, fmt.Errorf("FindIdentity: failed to get 'v_Ref' property: %s", err)
226+
log.Warnf("FindIdentity: failed to get 'v_Ref' property: %s", err)
227+
continue
226228
}
227229
log.Debugf("vrefRef: %#v", vrefRef)
228230

0 commit comments

Comments
 (0)