Include stdout in deploy error message (compose build errors)
This commit is contained in:
parent
359260fcef
commit
603a41f04a
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ function spawnAsync(file, args, opts = {}) {
|
|||
child.on('error', reject)
|
||||
child.on('close', code => {
|
||||
if (code === 0) resolve({ stdout, stderr })
|
||||
else reject(new Error(`Exit ${code}: ${stderr.slice(-500)}`))
|
||||
else reject(new Error(`Exit ${code}: ${(stderr + stdout).slice(-500)}`))
|
||||
})
|
||||
if (opts.timeout) {
|
||||
setTimeout(() => { child.kill(); reject(new Error('Timeout')) }, opts.timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue