Skip to content

Commit

Permalink
added reason for uca failure
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansaiki authored and christiansaiki committed Jun 13, 2019
1 parent 2443d59 commit ec740be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@identity.com/credential-commons",
"version": "1.0.16",
"version": "1.0.17",
"author": "Identity.com Community",
"license": "MIT",
"description": "Verifiable Credential and Attestation Library",
Expand Down
6 changes: 6 additions & 0 deletions src/errors/definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ const ErrorCodes = {
*/
ERROR_IDV_VALIDATION_REQUIREMENTS_FAIL: 'error.idv.validation.requirements.fail',

/**
* Reason: The data provided by the user is not the same as the one that the IDV got from the document
* Troubleshooting: Make sure the provided data is equal to the data in the document.
*/
ERROR_IDV_VALIDATION_UCA_VALUE_MISMATCH: 'error.idv.validation.uca.value.mismatch',

/**
* Reason: Missing required property when sending UCAs
* Troubleshooting: Make sure the provided UCA has all the required properties filled.
Expand Down

0 comments on commit ec740be

Please sign in to comment.