Skip to content

Commit

Permalink
fix: reference error in error handling clause
Browse files Browse the repository at this point in the history
This masks whatever error was actually occurring in #2003. I'll leave
that issue open until we get more info there.
  • Loading branch information
edvald committed Aug 19, 2020
1 parent eb2cd07 commit 4c849be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export async function exec(cmd: string, args: string[], opts: ExecOpts = {}) {
cmd,
args,
code: error.exitCode,
output: error.all || error.stdout,
output: error.all || error.stdout || error.stderr || "",
error: error.stderr,
})
error.message = message
Expand Down Expand Up @@ -310,7 +310,7 @@ export function spawn(cmd: string, args: string[], opts: SpawnOpts = {}) {
code,
cmd,
args,
output: result.all,
output: result.all || result.stdout || result.stderr || "",
error: result.stderr || "",
})
_reject(new RuntimeError(msg, { cmd, args, opts, result }))
Expand Down

0 comments on commit 4c849be

Please sign in to comment.