Fix bug in client error reporting.