You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be happy to change this but I'm wary that it makes assumptions about the scripts people are running. I'll leave this issue open and see if anyone chimes in on the conversation 👍
Cool, at the moment I've worked around it with a Write-Error which then throws an exception.
Write-Error "Error Code Not Zero"
exit 1
A lot of deployment tools when running PowerShell scripts check the return code, It's why I had the assumption it should throw an exception back up and fail the build step.
I'm also happy to change the code and submit a pull request if you're happy to push in this feature?
Not sure if this is intentional or not but I expect that running the following script would throw an exception with a none 0 exit code?
TestScript.ps1
build.cake
The text was updated successfully, but these errors were encountered: