Fix exception used in case of an error in a non-entity source file clause