Search Issue Tracker

Fixed in Unity 5.5.0

Votes

0

Found in

5.3.3f1

Issue ID

793567

Regression

No

Exceptions in OnPostProcessBuild scripts do not fail the build

Deployment Management

-

-

Priority: 7Not yet prioritized for a release

-

Severity: 0Severity not yet defined

Steps to reproduce:

1. Open the attached project
2. Build the only scene in it

Expected behaviour: The build should fail as there is an exception thrown in OnPostProcessBuild script.
Actual behaviour: The build completes successfully. The exception in the console window is logged after the build succeeds.

Note:
The same happens if you are building from command line, the process quits with a success exit code (0).

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.