mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +00:00
use console.warn for warnings
This commit is contained in:
parent
10d1b5974c
commit
29110694fb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user