Skip to content

Commit

Permalink
perf: improve exceptions logging on empty stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Aug 5, 2023
1 parent 38f2bd7 commit ea3e501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ts/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const runSync = (_flags: TFlags = {}, _flow?: TFlow): void => {
} catch (err: any) {
ctx.err = err

!flags.silent && console.error((err.stderr?.toString() || err.error || err.status || err))
!flags.silent && console.error((err.stderr?.toString() || err.stdout?.toString() || err.error || err.status || err))
exec(flow.fallback, ctx)

throw err
Expand Down

0 comments on commit ea3e501

Please sign in to comment.