diff --git a/static/scripts.js b/static/scripts.js index b6472f8..f32de68 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -245,7 +245,11 @@ async function displayProfile(opts) { fingerprint = sigVerification.publicKey.fingerprint; } catch (e) { feedback += `

There was a problem reading the signature.

`; - feedback += `${e}`; + if ('errors' in e) { + feedback += `${e.errors.join(', ')}`; + } else { + feedback += `${e}`; + } document.body.querySelector('#profileData').innerHTML = feedback; document.body.querySelector('#profileName').innerHTML = "Could not load profile"; return;