format
This commit is contained in:
parent
49bd6bc3ff
commit
68ccd1d79d
4 changed files with 8 additions and 8 deletions
|
@ -11,10 +11,10 @@ export function trace(msg: string, err: Error) {
|
|||
lines.push("")
|
||||
lines.push(
|
||||
"\n" +
|
||||
chalk.bgRed.black.bold(" ERROR ") +
|
||||
"\n" +
|
||||
chalk.red(` ${msg}`) +
|
||||
(err.message.length > 0 ? `: ${err.message}` : ""),
|
||||
chalk.bgRed.black.bold(" ERROR ") +
|
||||
"\n" +
|
||||
chalk.red(` ${msg}`) +
|
||||
(err.message.length > 0 ? `: ${err.message}` : ""),
|
||||
)
|
||||
|
||||
if (!stack) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue