fixed issue for error messages that do not give a line number