Revert "Revert "error file""

This reverts commit 7b5e2f834d6ec373ecce21ff01abc38af0a74326.