So here is my issue. I have a prebuild script in TFS2013 that runs JSHint through a gulp command. I want to make the script error if there are any warnings, and I have that working, but the error in the TFS detail is a lot more than the one line I was expecting.
In my powershell script I doing this:
Write-Error "$count files have JSHint warnings"
But here is the error detail in TFS:
Is there any way to make powershell error in a way that will make the build partially succeed/fail with an error detail that does not include all of this extra stuff in it? (You can see that the 2nd error is actually the error from the powershell script.)