all error messages must end with a newline
be tolerant of extra whitespace