appsignal / appsignal-ruby

🟥 AppSignal for Ruby gem
https://www.appsignal.com/ruby
MIT License
183 stars 115 forks source link

Fix error log message from at_exit without error #1272

Closed tombruijn closed 2 months ago

tombruijn commented 2 months ago

When a process exits normally (without an error) the report_error helper would log an error about the error value (nil) not being a valid exception.

Only continue to report_error helper if the Ruby last error object is not nil.

Fixes #1271