From 2cfc0f82f7d3c630e48e4e24dd7c7c7fb801bbc6 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 5 Dec 2024 11:11:19 +0100 Subject: [PATCH] Better error on creating users Signed-off-by: Ruben --- services/121-service/src/user/user.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/121-service/src/user/user.service.ts b/services/121-service/src/user/user.service.ts index d5daa951a3..955716a286 100644 --- a/services/121-service/src/user/user.service.ts +++ b/services/121-service/src/user/user.service.ts @@ -299,7 +299,7 @@ export class UserService { const user = await qb.getOne(); if (user) { - const errors = { username: 'Username must be unique.' }; + const errors = { username: `Username: '${username}' must be unique.` }; throw new HttpException( { message: 'Input data validation failed', errors }, HttpStatus.BAD_REQUEST,