fix: unhandledRejection (#9472)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Rhys Arkins 2021-04-09 16:16:00 +02:00 committed by GitHub
parent 10e5119f80
commit 1914c187a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,14 @@
#!/usr/bin/env node
import { logger } from './logger';
import * as proxy from './proxy';
import * as globalWorker from './workers/global';
// istanbul ignore next
process.on('unhandledRejection', (err) => {
logger.error({ err }, 'unhandledRejection');
});
proxy.bootstrap();
// eslint-disable-next-line @typescript-eslint/no-floating-promises