cake-build/cake

Tool.Run should make stdout and stderr available on failure

Open

#2,460 opened on Jan 24, 2019

View on GitHub
 (4 comments) (2 reactions) (0 assignees)C# (738 forks)batch import
Help wantedImprovementUp-for-grabs

Repository metrics

Stars
 (3,742 stars)
PR merge metrics
 (Avg merge 1d 1h) (25 merged PRs in 30d)

Description

Tool.Run and related should make stdout and stderr available so that some analysis is possible on failure. Currently it calls ProcessExitCode which throws a simple CakeException.

Ideally, it would capture stdout and stderr and throw a CakeProcessException, or similar, that has additional properties for exit code, stdout and stderr.

Contributor guide