logging for better error messages

This commit is contained in:
Vitor Pamplona 2024-01-28 13:57:56 -05:00
parent 97d34a455c
commit 96dfbc33b0

View File

@ -440,10 +440,13 @@ async function signNostrAuthEvent(relay, auth_challenge) {
// Generate event id
msg.id = await generateNostrEventId(msg);
console.log(msg)
// Sign event
signed_msg = await window.nostr.signEvent(msg);
} catch (e) {
console.log(e)
console.log("Failed to sign message with browser extension", e);
return undefined;
}