main: always log file name and line where errors occur