Skip to content

Commit

Permalink
postman/slack: print the actual error message
Browse files Browse the repository at this point in the history
  • Loading branch information
goneri committed Sep 12, 2024
1 parent c51d200 commit 5bd8984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible_ai_connect/users/reports/postman.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def send_reports(self, reports: Reports):
webhook = WebhookClient(self.webhook_url)
response = webhook.send(text="fallback", blocks=BasePostman.make_message_body(reports))
if response.status_code != 200:
logger.error(f"Failed to post reports. See response for details {response}.")
logger.error(f"Failed to post reports. See response for details: {response.body}")
raise ReportGenerationException("Failed to post reports.")

except SlackApiError as e:
Expand Down

0 comments on commit 5bd8984

Please sign in to comment.