mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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) {
|
||||
line += Chalk.grey(JSON.stringify(error, undefined, 2) + '\n')
|
||||
} else {
|
||||
line += Chalk.grey(error.stack)
|
||||
line += Chalk.grey(error.stack || error.message || `${error}`)
|
||||
}
|
||||
|
||||
return line
|
||||
|
Loading…
Reference in New Issue
Block a user