From 0447d8004cafe32ccd28b2015f74bb99cb784b2a Mon Sep 17 00:00:00 2001 From: calebboyd Date: Wed, 26 Sep 2018 14:31:18 -0500 Subject: [PATCH] chore: append build error to log file --- tasks/docker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/docker.ts b/tasks/docker.ts index 4dbc441..b3a4524 100644 --- a/tasks/docker.ts +++ b/tasks/docker.ts @@ -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)