mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
change: improve getLoggerFactoryOrThrow error message
This commit is contained in:
committed by
Ruben Taelman
parent
4c534e9d5d
commit
b62f4eb016
@@ -34,7 +34,7 @@ export class LazyLoggerFactory implements LoggerFactory {
|
||||
|
||||
public getLoggerFactoryOrThrow(): LoggerFactory {
|
||||
if (!this.loggerFactory) {
|
||||
throw new Error('Illegal logging during initialization');
|
||||
throw new Error('No logger factory has been set yet. Can be caused logger invocation during initialization.');
|
||||
}
|
||||
return this.loggerFactory;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user