tangled
alpha
login
or
join now
olaren.dev
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
atmosphere explorer
0
fork
atom
overview
issues
pulls
pipelines
handle error during did document resolution
handle.invalid
1 month ago
7ea97601
52a9e1ba
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+8
-2
1 changed file
expand all
collapse all
unified
split
src
utils
api.ts
+8
-2
src/utils/api.ts
···
62
62
throw new Error("Not a valid DID identifier");
63
63
}
64
64
65
65
-
const doc = await didDocumentResolver().resolve(did);
66
66
-
didDocCache[did] = doc;
65
65
+
let doc: DidDocument;
66
66
+
try {
67
67
+
doc = await didDocumentResolver().resolve(did);
68
68
+
didDocCache[did] = doc;
69
69
+
} catch (e) {
70
70
+
console.error(e);
71
71
+
throw new Error("Error during did document resolution");
72
72
+
}
67
73
68
74
const pds = getPdsEndpoint(doc);
69
75
const labeler = getLabelerEndpoint(doc);