Skip to content

Commit

Permalink
Loop through found addrs manually & insert newlines (#10)
Browse files Browse the repository at this point in the history
* Loop through found addrs manually & insert newlines to better present long lists of multiaddrs

Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
  • Loading branch information
momack2 and aschmahmann authored Jan 3, 2022
1 parent 6db2a38 commit 9c299ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ <h2 class="f4">What does it mean if I get an error?</h2>
}
}
if (!foundAddr) {
outText += "❌ Could not find the given multiaddr in the dht. Instead found: " + Object.keys(respObj.PeerFoundInDHT) + "\n"
outText += "❌ Could not find the given multiaddr in the dht. Instead found:\n"
for (const key in respObj.PeerFoundInDHT) {
outText += "\t" + key + "\n"

}
}
if (respObj.CidInDHT === true) {
outText += "✔ Found multihash adverised in the dht\n"
Expand Down

0 comments on commit 9c299ee

Please sign in to comment.