Better error on no JID

Stephen Paul Weber created

Change summary

bin/billing_monthly_cronjob | 1 +
1 file changed, 1 insertion(+)

Detailed changes

bin/billing_monthly_cronjob 🔗

@@ -180,6 +180,7 @@ class ExpiredCustomer
 		end
 
 		def send_notification
+			raise "No JID for #{customer_id}, cannot notify" unless jid
 			BlatherNotify.say(
 				CONFIG[:notify_using][:target].call(jid),
 				CONFIG[:notify_using][:body].call(