Fix bug in logging

When logging an exception that occured during parsing, the parser
wrote the name of the exception in the log twice, but left out
the command that caused the exception. This has been fixed.