Skip to content

Commit

Permalink
fix: occasional unhelpful error messages when shelling out
Browse files Browse the repository at this point in the history
Turns out the execa `all` attribute is only enabled with a flag now.
  • Loading branch information
edvald committed Dec 14, 2019
1 parent b5451e3 commit 92849a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garden-service/src/util/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ interface ExecOpts extends execa.Options {
*/
export async function exec(cmd: string, args: string[], opts: ExecOpts = {}) {
// Ensure buffer is always set to true so that we can read the error output
opts = { ...opts, buffer: true }
opts = { ...opts, buffer: true, all: true }
const proc = execa(cmd, args, omit(opts, ["stdout", "stderr"]))

opts.stdout && proc.stdout && proc.stdout.pipe(opts.stdout)
Expand Down

0 comments on commit 92849a0

Please sign in to comment.