Show xref error only for files