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# (3,742 stars) (738 forks)batch import
Help wantedImprovementUp-for-grabs

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