Use NotFound exception for all customer not found cases
1 files changed, 1 insertions(+), 1 deletions(-) M lib/customer_repo.rb
M lib/customer_repo.rb => lib/customer_repo.rb +1 -1
@@ 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