corrected error message to not expose too much info

This commit is contained in:
Ulf Gebhardt 2023-02-02 01:52:58 +01:00
parent fbec0d44b5
commit 0f7f38e2cd
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -465,7 +465,7 @@ export class UserResolver {
try {
// Save user
await queryRunner.manager.save(user).catch((error) => {
throw new LogError(`Error saving user: ${error}`, error)
throw new LogError('Error saving user', error)
})
// Save userContact
await queryRunner.manager.save(userContact).catch((error) => {