Log the query

Stephen Paul Weber created

Change summary

lib/customer_repo.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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