mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
fix(generator): log message or full error for unhandled error without stack trace (#6882)
This commit is contained in:
parent
e91a441f2c
commit
708ae3018e
@ -128,7 +128,7 @@ export default class Generator {
|
|||||||
if (isHandled) {
|
if (isHandled) {
|
||||||
line += Chalk.grey(JSON.stringify(error, undefined, 2) + '\n')
|
line += Chalk.grey(JSON.stringify(error, undefined, 2) + '\n')
|
||||||
} else {
|
} else {
|
||||||
line += Chalk.grey(error.stack)
|
line += Chalk.grey(error.stack || error.message || `${error}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return line
|
return line
|
||||||
|
Loading…
Reference in New Issue
Block a user