Provide an explanatory error message when the compilation would fail because of missing or duplicate items.