chore(xo-server/bin): format with Prettier
This commit is contained in:
parent
eab6eb8fab
commit
deb58e40d5
@ -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)
|
||||
|
@ -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('../'))
|
||||
|
Loading…
Reference in New Issue
Block a user