use console.warn for warnings

This commit is contained in:
Pooya Parsa 2018-01-13 08:59:47 +03:30
parent 10d1b5974c
commit 29110694fb

View File

@ -8,7 +8,7 @@ exports.pe = new PrettyError()
exports.printWarn = function (msg, from) { exports.printWarn = function (msg, from) {
/* eslint-disable no-console */ /* eslint-disable no-console */
const fromStr = from ? Chalk.yellow(` ${from}\n\n`) : ' ' const fromStr = from ? Chalk.yellow(` ${from}\n\n`) : ' '
console.error('\n' + Chalk.bgYellow.black(' WARN ') + fromStr + msg + '\n') console.warn('\n' + Chalk.bgYellow.black(' WARN ') + fromStr + msg + '\n')
} }
exports.renderError = function (_error, from) { exports.renderError = function (_error, from) {