Skip to content

Commit

Permalink
[#331] Prefer IllegalStateException on revoked VC
Browse files Browse the repository at this point in the history
  • Loading branch information
tdiesler committed Jul 31, 2023
1 parent f9c9f3e commit c7d220e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class CredentialStatusPolicy : SimpleVerificationPolicy() {
is TokenRevocationStatus -> "CredentialStatus (type ${cs.type}) was REVOKED at timestamp ${status.timeOfRevocation} for id ${cs.id}."
else -> "CredentialStatus ${cs.type} was REVOKED for id ${cs.id}"
}.let {
VerificationPolicyResult.failure(IllegalArgumentException(it))
VerificationPolicyResult.failure(IllegalStateException(it))
}
}

Expand Down

0 comments on commit c7d220e

Please sign in to comment.