Skip to content

Commit

Permalink
Merge pull request biscuitehh#1 from insidegui/improved-error-handling
Browse files Browse the repository at this point in the history
Improved error handling
  • Loading branch information
Michael Thomas authored Sep 23, 2019
2 parents 49fe56d + bb5db32 commit c969f1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion watchid-pam-extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public func pam_sm_authenticate(pamh: pam_handler_t, flags: Int, argc: Int, argv
defer { semaphore.signal() }

if let error = error {
fputs("\(error.localizedDescription)\n", stderr)
fputs("\(error.localizedDescription)\n", stderr)
result = PAM_IGNORE
return
}

result = success ? PAM_SUCCESS : PAM_AUTH_ERR
Expand Down

0 comments on commit c969f1b

Please sign in to comment.