Skip to content

Commit

Permalink
log salesforce error responses for custom tables (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 authored Oct 22, 2024
1 parent 6b4b9a3 commit c3fb5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_salesforce/salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def _make_request(self, http_method, url, headers=None, body=None, stream=False,
try:
resp.raise_for_status()
except RequestException as ex:
raise ex
raise Exception(f"Error: {ex}. Response: {resp.text}")

if resp.headers.get('Sforce-Limit-Info') is not None:
self.rest_requests_attempted += 1
Expand Down

0 comments on commit c3fb5b3

Please sign in to comment.