From 110a040c228f2807829479a60e951d188365b8ab Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 17 Jan 2022 11:34:48 -0500 Subject: [PATCH] Use NotFound exception for all customer not found cases --- 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 b38e16e..940b9b7 100644 --- a/lib/customer_repo.rb +++ b/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 -- 2.34.7