We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ee509 commit d4bd9f8Copy full SHA for d4bd9f8
app/jobs/puzzle_inventory_check_job.rb
@@ -19,7 +19,7 @@ def send_low_inventory_notification(count)
19
20
def send_message(message, channel_id:)
21
SlackClient::Client.instance.chat_postMessage(channel: channel_id, blocks: message)
22
- rescue Slack::Web::Api::Errors::SlackError
23
- head :unprocessable_entity
+ rescue Slack::Web::Api::Errors::SlackError => e
+ Rails.logger.error "Failed to send Slack message: #{e.message} #{e.response_metadata}"
24
end
25
0 commit comments