add some logging

main
june moretz 2023-05-08 00:32:00 -04:00
parent 2b68db954c
commit 8c7d8ce512
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ const authenticate = async (msg, respond, socket) => {
});
}
} catch (err) {
console.err("error in authentication: " + err);
return respond({
success: false,
message: "Message signature verification failed",

View File

@ -29,6 +29,7 @@ const create_user = async (msg, respond) => {
try {
await openpgp.readKey({ armoredKey: msg.pubkey });
} catch (err) {
console.err("error in create_user readkey: " + err);
return respond({
success: false,
message: "Public key invalid",