diff --git a/bin/xo-server b/bin/xo-server index d4e4dc237..64fc7ee31 100755 --- a/bin/xo-server +++ b/bin/xo-server @@ -8,7 +8,7 @@ require('../better-stacks') // Make unhandled rejected promises visible. -process.on('unhandledRejection', (reason) => { +process.on('unhandledRejection', function (reason) { console.warn('[Warn] Possibly unhandled rejection:', reason && reason.stack || reason) })