Update error localisation.

When the parsing text has no newline, the error was empty. Fix this :-).