Change summary
sgx_jmp.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Detailed changes
@@ -386,7 +386,12 @@ Command.new(
}.then { |customer|
Sentry.add_breadcrumb(Sentry::Breadcrumb.new(message: "Registration.for"))
Registration.for(customer, web_register_manager).then(&:write)
- }.then { StatsD.increment("registration.completed") }
+ }.then {
+ StatsD.increment("registration.completed")
+ }.catch_only(ErrorToSend) do |e|
+ StatsD.increment("registration.completed")
+ EMPromise.reject(e)
+ end
}.register(self).then(&CommandList.method(:register))
# Commands that just pass through to the SGX