Better client API error logging.