Skip to content

Commit

Permalink
fix: include internal error message (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
am6010 authored May 21, 2024
1 parent e1f3848 commit fb66788
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,6 @@ def _find_account(account_id: str) -> AdAccount:
)
raise AirbyteTracedException(
message=message,
internal_message=message,
failure_type=FailureType.config_error,
) from exc
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def get_custom_insights_streams(self, api: API, config: ConnectorConfig) -> List
)
raise AirbyteTracedException(
message=message,
internal_message=message,
failure_type=FailureType.config_error,
)
stream = AdsInsights(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ def read_records(
for obj in job.get_result():
yield obj.export_all_data()
except FacebookBadObjectError as e:
message = f"API error occurs on Facebook side during job: {job}, wrong (empty) response received with errors: {e} "
f"Please try again later"
raise AirbyteTracedException(
message=f"API error occurs on Facebook side during job: {job}, wrong (empty) response received with errors: {e} "
f"Please try again later",
message=message,
internal_message=message,
failure_type=FailureType.system_error,
) from e

Expand Down

0 comments on commit fb66788

Please sign in to comment.