render error message when customer not found

This commit is contained in:
Rimian Perkins 2019-11-13 07:53:48 +11:00
parent 5153a9a634
commit 59638daad9
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ module DiscoursePatrons
end
render_json_dump deleted
else
render_json_error "Customer ID not found"
end
rescue ::Stripe::InvalidRequestError => e