From 1880554ae8e89befa3d3ee390cc2b683135567e0 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 26 Jun 2020 12:58:02 +0200 Subject: [PATCH] Improve error feedback --- scripts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts.js b/scripts.js index 6cb0776..f57ea7f 100644 --- a/scripts.js +++ b/scripts.js @@ -57,6 +57,7 @@ async function verifySignature(opts) { elRes.classList.add('green'); } else { feedback += "The message's signature COULD NOT BE verified using the userId extracted from the signature.
"; + feedback += 'UserId: '+keyData.sigUserId+'
'; elRes.classList.remove('green'); elRes.classList.add('red'); } @@ -70,6 +71,7 @@ async function verifySignature(opts) { elRes.classList.add('green'); } else { feedback += "The message's signature COULD NOT BE verified using the keyId extracted from the signature.
"; + feedback += 'KeyID: '+keyData.sigKeyId+'
'; elRes.classList.remove('green'); elRes.classList.add('red'); }