From d9a0691b824d8ce1ee39dee99cc566e47d96b03b Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Wed, 1 Jul 2020 18:46:19 -0400 Subject: [PATCH] Label electrumX errors with index --- views/address.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/address.pug b/views/address.pug index 94a98a2..d2b3fdd 100644 --- a/views/address.pug +++ b/views/address.pug @@ -300,7 +300,7 @@ block content div.text-danger Error: #{addressApiError.userText} else if (addressDetailsErrors && addressDetailsErrors.length > 0) - each err in addressDetailsErrors + each err, errIndex in addressDetailsErrors if (err.e && err.e && err.e.message == "history too large") span Failed to retrieve transaction history from ElectrumX because this address is involved in too many transactions (more than ElectrumX currently supports retrieving). See a(href="https://github.com/janoside/btc-rpc-explorer/issues/67") Issue #67 @@ -312,7 +312,7 @@ block content span for help setting up an address API if desired. else - span.text-danger Error retrieving transaction history + span.text-danger Error retrieving transaction history (##{errIndex + 1}) pre code.json #{JSON.stringify(err, null, 4)}