~singpolyma/sgx-jmp

83603be964527ea151520d36cf61040c51cc4079 — Stephen Paul Weber 1 year, 9 months ago 9a1a09e
Since Command#finish causes an error, a then off the end won't work
1 files changed, 6 insertions(+), 1 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +6 -1
@@ 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