title: Pass command's stderr from a build task into Azure DevOps
body: <p>I have a VSTS (Azure DevOps) build which contains a <em>PowerShell</em> or a <em>Command line</em> task. This task is running some program: <code>program.exe</code>. When <code>program.exe</code> returns a non-zero exit code, the build is failed as expected. <code>program.exe</code> also prints a detailed error message to the <code>stderr</code> stream in case of an error.</p>
  
  <p>The problem is that the content of the <code>stderr</code> stream is not passed to the build. The task is always returning the following error message which is also displayed as a build failure message on the build summary tab:</p>
  
  <blockquote>
    <p>Process completed with exit code 1.</p>
  </blockquote>
  
  <p>Which is useless. The user has to look for a failed task, open its output and search for an error message there. That's not very convenient.</p>
  
  <p>How to easily pass the content of <code>stderr</code> to the build?</p>
  
  <p>Do I have to manually capture <code>stderr</code> and then send it to the build using PowerShell or is there a setting to change the build behaviour to work as I expect?</p>