Improved error output messages

Improved the error output messages by consolidating all error outputs
into a single function.  I've both listed the character at which there
is a problem and created a line to point out the location of the error.