instead of random class, error file independant

alternative solution to the main Main visitor error being file
independant, have getcurfilename return a file independant string when
the error is not the fault of a particular class.