Map entities to files for better error messages