Log APIErrors more cleanly.