Use NotFound exception for all customer not found cases

Stephen Paul Weber created

Change summary

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

Detailed changes

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