emit plugin error when missing file instead of throwing error