chore: append build error to log file

This commit is contained in:
calebboyd
2018-09-26 14:31:18 -05:00
parent 11be5a2573
commit 0447d8004c
+2 -1
View File
@@ -51,7 +51,8 @@ export async function runDockerBuild(target: NexeTarget) {
output.push(await execa.shell(`docker cp nexe:/out out`))
output.push(await execa.shell(`docker rm nexe`))
} catch (e) {
console.log('Error running docker', e)
console.log('Error running docker')
appendFileSync(outFilename, e.message)
} finally {
output.forEach((x: any) => {
appendFileSync(outFilename, x.stderr)