Skip to content

Commit

Permalink
add identifier to pkarr error for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed May 2, 2024
1 parent 3abb717 commit d95e98b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dids/src/methods/did-dht.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit d95e98b

Please sign in to comment.