Fix regression in handling of build errors