log error, better error message

This commit is contained in:
Daniel Lugo 2020-03-10 18:38:57 -04:00
parent 67efc4e995
commit 83868ff10f

View file

@ -316,7 +316,10 @@ const authenticate = async (alias, pass, __user) => {
return ack.sea.pub
} else {
throw new Error('Unknown error.')
logger.error(
`Unknown error, wrong password? Ack looks like: ${JSON.stringify(ack)}`
)
throw new Error(`Didn't work, bad password?`)
}
}