Include stdout in deploy error message (compose build errors)

This commit is contained in:
jtricerolph 2026-07-14 15:13:06 +00:00
parent 359260fcef
commit 603a41f04a

View file

@ -15,7 +15,7 @@ function spawnAsync(file, args, opts = {}) {
child.on('error', reject) child.on('error', reject)
child.on('close', code => { child.on('close', code => {
if (code === 0) resolve({ stdout, stderr }) 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) { if (opts.timeout) {
setTimeout(() => { child.kill(); reject(new Error('Timeout')) }, opts.timeout) setTimeout(() => { child.kill(); reject(new Error('Timeout')) }, opts.timeout)