Print error returned by API.