diff --git a/.changeset/tall-mugs-wink.md b/.changeset/tall-mugs-wink.md new file mode 100644 index 000000000..38898ad91 --- /dev/null +++ b/.changeset/tall-mugs-wink.md @@ -0,0 +1,5 @@ +--- +"@web5/dids": patch +--- + +We sometimes get failures in CI publishing to the DHT. In order to make debugging these errors easier, we add the identifier to the error thrown. diff --git a/packages/dids/src/methods/did-dht.ts b/packages/dids/src/methods/did-dht.ts index 00dbfafad..b5acb8b25 100644 --- a/packages/dids/src/methods/did-dht.ts +++ b/packages/dids/src/methods/did-dht.ts @@ -948,7 +948,7 @@ export class DidDhtDocument { }); } catch (error: any) { - throw new DidError(DidErrorCode.InternalError, `Failed to put Pkarr record: ${error.message}`); + throw new DidError(DidErrorCode.InternalError, `Failed to put Pkarr record for identifier ${identifier}: ${error.message}`); } // Return `true` if the DHT request was successful, otherwise return `false`.