Commit 1fdd6de3 authored by Janka Uryga's avatar Janka Uryga

more informative output for build errors

parent f5b08e86
......@@ -105,7 +105,12 @@ export class NextStartInstance extends NextInstance {
this.childProcess = null
if (code || signal)
reject(
new Error(`next build failed with code/signal ${code || signal}`)
new Error(
`next build failed with ${code !== undefined ? `code ${code}` : `signal {signal}`}.` +
(this.cliOutput
? '\n(no output emitted on stdout/stderr)'
: '\n\n' + this.cliOutput)
)
)
else resolve()
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment