From fbfca2370bd649c76f21ee5776b7d6219ffca46b Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Sat, 28 Mar 2020 06:40:01 +0000 Subject: [PATCH] bugfix: better logging on create user error --- packages/core/src/authApi/createUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/authApi/createUser.js b/packages/core/src/authApi/createUser.js index 3693bd4347..fa953f9c9f 100644 --- a/packages/core/src/authApi/createUser.js +++ b/packages/core/src/authApi/createUser.js @@ -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)