Correctly emit error for empty build