Properly return error during productionize.