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