~singpolyma/sgx-jmp

7f1efc32378889e0044c2ee53e9d9ad93c7ff041 — Stephen Paul Weber 1 year, 6 months ago 35f09f1
Panic should work on any value for error
1 files changed, 2 insertions(+), 1 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +2 -1
@@ 69,7 69,8 @@ end
BRAINTREE = AsyncBraintree.new(**CONFIG[:braintree])

def panic(e)
	warn "Error raised during event loop: #{e.message}"
	m = e.respond_to?(:message) ? e.message : e
	warn "Error raised during event loop: #{e.class}: #{m}"
	warn e.backtrace if e.respond_to?(:backtrace)
	exit 1
end