lib/customer_repo.rb 🔗
@@ -33,7 +33,7 @@ class CustomerRepo
find($1)
else
@redis.get("jmp_customer_id-#{jid}").then do |customer_id|
- raise "No customer" unless customer_id
+ raise NotFound, "No customer" unless customer_id
find_inner(customer_id, jid)
end