err styling

This commit is contained in:
Pooya Parsa 2018-01-11 22:46:26 +03:30
parent 758c554ed7
commit 0cb0beb1c5

View File

@ -14,7 +14,7 @@ exports.printWarn = function (msg, from) {
exports.renderError = function (_error, from) {
const errStr = exports.pe.render(_error)
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 () {