From 7d3dd44a269c7ec5133bc4f38b26d5ca3bcf019d Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 9 Sep 2024 14:11:37 -0500 Subject: [PATCH] Log the query --- lib/customer_repo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/customer_repo.rb b/lib/customer_repo.rb index 6bde93f6c93222c28fe3230c829cdbd1b41e4cf6..16d3284f0a64dd5d8482a72ebed229edbcdc4188 100644 --- a/lib/customer_repo.rb +++ b/lib/customer_repo.rb @@ -64,7 +64,7 @@ class CustomerRepo Tel = Struct.new(:tel) do def keys(redis) redis.get("catapult_jid-#{tel}").then do |jid| - raise NotFound, "No jid" unless jid.to_s =~ /\Acustomer_/ + raise NotFound, "No jid for '#{tel}'" unless jid.to_s =~ /\Acustomer_/ JID.for(jid).keys(redis, tel: tel) end