Include Process Console Output #3458
BlythMeister
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
ToolSettings (the base class for all built-in and addin tool aliases), currently doesn't support output redirection. This is tracked with #2460 and #2461. Workaround for the moment is to use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When exit codes show process errored, it would be great to have the actual console output included in the exception.
Currently, there is no easy way to know in the calling code what caused the non zero exit code. You know something gone wrong, but no idea what. - granted, its printed in the build log. But you are not able to take any additional action based on the type of failure (e.g. conditional retry, ignoring the error or doing something different as a fallback)
For example.
Calling the DockerBuild alias, it uses the standard run in Tool.cs.
If this exits with a non zero code, you get an exception thrown, but there is no way to know what happened to cause the error.
DockerBuild is just 1 example...it could be any other alias of built in that uses Tool.cs to start a process.
Beta Was this translation helpful? Give feedback.
All reactions