|
|
|
@ -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';
|
|
|
|
|