This PR fixes an issue where errors not directly related to the TaxJar API (GuzzleHttp exceptions, for example) were sometimes being improperly formatted to the way we display TaxJar-related errors, causing unhelpful error messages to be displayed.
For example, a customer received an error without any pertinent details: message : Trying to get property 'error' of non-object
After release, general exceptions will be passed along to the consumer with no change in the original structure to avoid these unhelpful errors.
This PR fixes an issue where errors not directly related to the TaxJar API (GuzzleHttp exceptions, for example) were sometimes being improperly formatted to the way we display TaxJar-related errors, causing unhelpful error messages to be displayed.
For example, a customer received an error without any pertinent details:
message : Trying to get property 'error' of non-object
After release, general exceptions will be passed along to the consumer with no change in the original structure to avoid these unhelpful errors.