Fixes output of error messages.