Improved the line parsing error callbacks.