Skip to content

Commit

Permalink
chore: update error for verifying bit string status list credential
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Waske <[email protected]>
  • Loading branch information
GHkrishna committed Jan 13, 2025
1 parent 7c6edc8 commit f5671a7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export const verifyBitStringCredentialStatus = async (

// Check if the credential is revoked
if (decodedBitString[statusListIndex] === '1') {
throw new CredoError(`Credential at index ${credentialStatus.statusListIndex} is revoked.`)
// To do: The error can be updated once we add support for status messages
throw new CredoError(
`Credential at index ${credentialStatus.statusListIndex} is in ${bitStringStatusListCredential.credentialSubject.statusPurpose} state.`
)
}

return true
Expand Down

0 comments on commit f5671a7

Please sign in to comment.