log error, better error message
This commit is contained in:
parent
67efc4e995
commit
83868ff10f
1 changed files with 4 additions and 1 deletions
|
|
@ -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?`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue