From 29110694fb4692389bbfb5b35a0232468c51c8a9 Mon Sep 17 00:00:00 2001 From: Pooya Parsa <pooya@pi0.ir> Date: Sat, 13 Jan 2018 08:59:47 +0330 Subject: [PATCH] use console.warn for warnings --- lib/common/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/utils.js b/lib/common/utils.js index 9518e489fe..130f920c01 100644 --- a/lib/common/utils.js +++ b/lib/common/utils.js @@ -8,7 +8,7 @@ exports.pe = new PrettyError() exports.printWarn = function (msg, from) { /* eslint-disable no-console */ 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) {