From 23c424170deb81b87c8ae695fa047ff6d5c76492 Mon Sep 17 00:00:00 2001 From: drusepth Date: Thu, 23 Dec 2021 22:18:07 -0800 Subject: [PATCH] log some errors --- app/jobs/notify_discord_of_thread_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/notify_discord_of_thread_job.rb b/app/jobs/notify_discord_of_thread_job.rb index f1e18058..a3670985 100644 --- a/app/jobs/notify_discord_of_thread_job.rb +++ b/app/jobs/notify_discord_of_thread_job.rb @@ -6,7 +6,7 @@ class NotifyDiscordOfThreadJob < ApplicationJob def perform(*args) thread_id = args.shift thread = Thredded::Topic.find_by(id: thread_id) - return unless thread + raise "No thread found for new ID #{thread.id.inspect}" unless thread webhook_url = ENV.fetch('DISCORD_FORUMS_WEBHOOK', '').freeze