- Home /
Question by
ilusja · Nov 05, 2019 at 12:18 PM ·
buildbuildingexceptionbuild errorpreprocessor
How to fail build in Unity 2017.4?
I'm using a class that implements IPreprocessBuildWithReport interface. BuildFailedException is thrown when certain conditions occur (conditions defined by me, actually).
In Unity 2018.4 this exception interrupts building and makes the build fail. In 2017.4 it only throws an exception, but building continues and ends with success.
Is there a way to stop building when exception occurs in 2017.4?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612214404im_/https://answers.unity.com/themes/thub/images/avi.jpg)