Is your feature request related to a problem? Please describe.
Currently, Popsift directly calls exit() function (example) when it encounters failures and directly logs into stderr.
Our application directly links to popsift and this results in our application crashing. This is quite difficult to handle since it would require the application to directly intercept the exit() call.
Describe the solution you'd like
Instead of directly calling exit(), it would be amazing to throw an exception so the application can gracefully catch it.
I'd be happy to send in a patch for this.
Is your feature request related to a problem? Please describe.
Currently, Popsift directly calls
exit()function (example) when it encounters failures and directly logs into stderr.Our application directly links to popsift and this results in our application crashing. This is quite difficult to handle since it would require the application to directly intercept the
exit()call.Describe the solution you'd like
Instead of directly calling
exit(), it would be amazing to throw an exception so the application can gracefully catch it.I'd be happy to send in a patch for this.