mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
parent
5b81314be1
commit
e6465c07cc
@ -347,9 +347,9 @@ export class AccessService {
|
|||||||
DEFAULT_PROJECT,
|
DEFAULT_PROJECT,
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(
|
const message = `Could not add role=${newRootRole.name} to userId=${userId}`;
|
||||||
`Could not add role=${newRootRole.name} to userId=${userId}`,
|
this.logger.error(message, error);
|
||||||
);
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new BadDataError(`Could not find rootRole=${role}`);
|
throw new BadDataError(`Could not find rootRole=${role}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user