From e3ad7dc0823da6579e0fc56fc6b3ec0d98800f6b Mon Sep 17 00:00:00 2001 From: Benoit Lavenier <benoit.lavenier@e-is.pro> Date: Thu, 8 Apr 2021 14:27:04 +0200 Subject: [PATCH] [fix] Base58: add error message on invalid character --- www/js/vendor/base58.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/js/vendor/base58.js b/www/js/vendor/base58.js index 906362e4d..77d700310 100644 --- a/www/js/vendor/base58.js +++ b/www/js/vendor/base58.js @@ -61,6 +61,7 @@ while (i < string.length) { c = string[i]; if (!(c in Base58.alphabetMap)) { + console.error("Base58.decode received unacceptable input. Character '" + c + "' is not in the Base58 alphabet."); throw "Base58.decode received unacceptable input. Character '" + c + "' is not in the Base58 alphabet."; } j = 0; -- GitLab