Updated some error messages.

Some of the error messages have been made more verbose to ease debugging.