oesmith / puffing-billy

A rewriting web proxy for testing interactions between your browser and external sites. Works with ruby + rspec.
MIT License
656 stars 170 forks source link

Don't attempt to print backtrace when it's not available (EM event handler) #245

Closed kowalskey closed 6 years ago

kowalskey commented 6 years ago

Hello, Looks like Exceptions are allowed to not have backtrace available

Trying to join() on nil terminates puffing billy so I think it's feasible to check whether exception has backtrace before atttempting to print it

I had some problems with puffing-billy terminating because of exception in main_loop thread what caused it to terminate and as a consequence - following tests in suite to fail because proxy has just died so no requests passed through it would receive a response

ronwsmith commented 6 years ago

Released in 1.1.2