Skip to content

Commit

Permalink
fix: error message for did key
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Dec 11, 2021
1 parent 447d0f3 commit d9cd4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/modules/dids/DidKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class DidKey {
const keyType = idPrefixMap[code]

if (!keyType) {
throw new Error('Unsupported key type from multicodec')
throw new Error(`Unsupported key type from multicodec code '${code}'`)
}

return new DidKey(publicKey, keyType)
Expand Down

0 comments on commit d9cd4ad

Please sign in to comment.