only report line number when error