diff --git a/gen-test.js b/gen-test.js index 1c9dc7d..3e3556f 100644 --- a/gen-test.js +++ b/gen-test.js @@ -165,7 +165,7 @@ function getOutcome(error, deactivated) { case 'invalidDidUrl': return 'invalidDidUrlErrorOutcome'; case 'notFound': return 'notFoundErrorOutcome'; case 'representationNotSupported': return 'representationNotSupportedErrorOutcome'; - default: throw new Error('Unknown error: ' + didResolutionMetadata.error); + default: throw new Error('Unknown error: ' + error); } if (deactivated) return 'deactivatedOutcome'; return 'defaultOutcome';