Pass error from worker to build