move errors to fit in logger.error
This commit is contained in:
parent
447dca754b
commit
9295f90741
4 changed files with 16 additions and 9 deletions
|
@ -11,7 +11,6 @@ async function main(): Promise<void> {
|
|||
}
|
||||
|
||||
main().catch((error: Error) => {
|
||||
logger.error("Error initializing the server:");
|
||||
logger.error(error as Error);
|
||||
logger.error(["Error initializing the server:", error]);
|
||||
process.exit(1);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue