Skip to content

Commit

Permalink
Rules that fail with a (technical) exceptions should be reported as O…
Browse files Browse the repository at this point in the history
…pen instead of Fail (#17)

Co-authored-by: Alexandr Chernyy <pingus.nikalex@gmail.com>
  • Loading branch information
alexchornyi and pingus-nikalex authored Jun 30, 2021
1 parent 90b3b2d commit 76244f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CertLogic/CertLogic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ final public class CertLogicEngine {
if results as! Bool {
result.append(ValidationResult(rule: rule, result: .passed, validationErrors: nil))
} else {
result.append(ValidationResult(rule: rule, result: .fail, validationErrors: nil))
result.append(ValidationResult(rule: rule, result: .open, validationErrors: nil))
}
}
} catch {
Expand Down

0 comments on commit 76244f8

Please sign in to comment.