Don't nextTick here. The event is handled on a nextTick anyway
To avoid printing out a superfluous error message, check for a predefined string to print out a genericc build failed error message.