Fix error catching

main
Charles E. Lehner 4 years ago
parent 12e3d42266
commit 4ef0066ee8
Signed by: cel
GPG Key ID: C28D95BB012367EA

@ -165,7 +165,7 @@ function getOutcome(error, deactivated) {
case 'invalidDidUrl': return 'invalidDidUrlErrorOutcome'; case 'invalidDidUrl': return 'invalidDidUrlErrorOutcome';
case 'notFound': return 'notFoundErrorOutcome'; case 'notFound': return 'notFoundErrorOutcome';
case 'representationNotSupported': return 'representationNotSupportedErrorOutcome'; case 'representationNotSupported': return 'representationNotSupportedErrorOutcome';
default: throw new Error('Unknown error: ' + didResolutionMetadata.error); default: throw new Error('Unknown error: ' + error);
} }
if (deactivated) return 'deactivatedOutcome'; if (deactivated) return 'deactivatedOutcome';
return 'defaultOutcome'; return 'defaultOutcome';

Loading…
Cancel
Save