Avoid directly logging error objects

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-07 14:15:17 +01:00
parent ab43f12359
commit 9f2b786fc9
14 changed files with 32 additions and 13 deletions
@@ -126,7 +126,7 @@ export default async function serve(opts: OptionValues) {
httpServer
.serve()
.catch(err => {
logger.error(err);
logger.error('Failed to start HTTP server', err);
mkdocsChildProcess.kill();
process.exit(1);
})