chore(xo-server/bin): format with Prettier

This commit is contained in:
Julien Fontanet 2021-03-02 11:39:42 +01:00
parent eab6eb8fab
commit deb58e40d5
2 changed files with 5 additions and 9 deletions

View File

@ -4,10 +4,8 @@
global.Promise = require('bluebird')
process.on('unhandledRejection', function (reason) {
console.warn('[Warn] Possibly unhandled rejection:', reason && reason.stack || reason)
console.warn('[Warn] Possibly unhandled rejection:', (reason && reason.stack) || reason)
})
require("exec-promise")(require("../dist/vhd-test").default)
require('exec-promise')(require('../dist/vhd-test').default)

View File

@ -12,16 +12,14 @@ if (process.env.NODE_ENV === undefined) {
// Better stack traces if possible.
try {
require('source-map-support').install({
handleUncaughtExceptions: false
});
handleUncaughtExceptions: false,
})
} catch (_) {}
// Use Bluebird for all promises as it provides better performance and
// less memory usage.
global.Promise = require('bluebird')
require('@xen-orchestra/log/configure').catchGlobalErrors(
require('@xen-orchestra/log').default('xo:xo-server')
)
require('@xen-orchestra/log/configure').catchGlobalErrors(require('@xen-orchestra/log').default('xo:xo-server'))
require('exec-promise')(require('../'))