Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fail powershell based builds if non terminating errors occur #1616
Powershell divides errors into terminating and non-terminating errors. By default, a terminating error will halt a script but non-terminating errors will emit the error to the console and then proceed. This behavior is fitting for many ad hoc scripts that process multiple items in a powershell pipeline and do not want to terminate if a single item fails. However for our purposes during a habitat package build, any error should halt the build.