fix: logError is not a function. fixes #2577.

This commit is contained in:
Pooya Parsa 2018-01-13 08:40:01 +03:30
parent cc29b26cbe
commit b3e9952976

View File

@ -1,10 +1,10 @@
#!/usr/bin/env node
const { join } = require('path')
const { logError } = require('../lib/common/utils')
const { Utils } = require('..')
// Global error handler
process.on('unhandledRejection', _error => {
logError(_error) // eslint-disable no-console
Utils.printError(_error)
})
const defaultCommand = 'dev'