mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user