Skip to content

Commit

Permalink
Surface first error (microsoft/vscode-remote-release#7382)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Nov 22, 2022
1 parent 003d7be commit 6117baf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/spec-node/containerFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ async function createLocalFeatures(params: DockerResolverParameters, dstFolder:
output.write(toErrorText(stderrDecoder.write(chunk)));
});
create.pipe(extract.stdin);
await extract.exit;
await createExit; // Allow errors to surface.
await Promise.all([
extract.exit,
createExit, // Allow errors to surface.
]);
}

export interface ImageBuildOptions {
Expand Down

0 comments on commit 6117baf

Please sign in to comment.