Skip to content

Commit

Permalink
chore: log unerlying DB error in set user root role (#5324)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Nov 13, 2023
1 parent 5782efa commit ce7644e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/services/access-service.ts
Expand Up @@ -347,9 +347,9 @@ export class AccessService {
DEFAULT_PROJECT,
);
} catch (error) {
throw new Error(
`Could not add role=${newRootRole.name} to userId=${userId}`,
);
const message = `Could not add role=${newRootRole.name} to userId=${userId}`;
this.logger.error(message, error);
throw new Error(message);
}
} else {
throw new BadDataError(`Could not find rootRole=${role}`);
Expand Down

0 comments on commit ce7644e

Please sign in to comment.