From 1914c187a6d0f160628975b5f17239fb4119e91c Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 9 Apr 2021 16:16:00 +0200
Subject: [PATCH] fix: unhandledRejection (#9472)

Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
---
 lib/renovate.ts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/renovate.ts b/lib/renovate.ts
index 2128521f2b..50ee830e6b 100644
--- a/lib/renovate.ts
+++ b/lib/renovate.ts
@@ -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
-- 
GitLab