mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
err styling
This commit is contained in:
parent
758c554ed7
commit
0cb0beb1c5
@ -14,7 +14,7 @@ exports.printWarn = function (msg, from) {
|
|||||||
exports.renderError = function (_error, from) {
|
exports.renderError = function (_error, from) {
|
||||||
const errStr = exports.pe.render(_error)
|
const errStr = exports.pe.render(_error)
|
||||||
const fromStr = from ? Chalk.red(` ${from}`) : ''
|
const fromStr = from ? Chalk.red(` ${from}`) : ''
|
||||||
return '\n' + Chalk.bgRed.black(' ERROR ') + fromStr + '\n' + errStr + '\n'
|
return '\n' + Chalk.bgRed.black(' ERROR ') + fromStr + '\n\n' + errStr
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.printError = function () {
|
exports.printError = function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user