bugfix: better logging on create user error
This commit is contained in:
parent
946c79df53
commit
fbfca2370b
|
@ -44,7 +44,7 @@ export const _createUser = async (app, user, password = null) => {
|
|||
|
||||
const userErrors = validateUser(app)([...users, user], user)
|
||||
if (userErrors.length > 0) {
|
||||
throw new BadRequestError(`User is invalid. ${join("; ")(userErrors)}`)
|
||||
throw new BadRequestError(`User is invalid. ${join("; ")(userErrors.map(e => e.error))}`)
|
||||
}
|
||||
|
||||
const { auth, tempCode, temporaryAccessId } = await getAccess(app, password)
|
||||
|
|
Loading…
Reference in New Issue