chuckremes/ffi-rzmq — pull request #53 by jordansissel (2012-06-07 18:57:57+00:00)
Title: raise LoadError instead of calling 'exit'

The decision to exit should be up to the consumer of the library, not the library itself, I think.

The specific case is that I have unit tests that call plugins that use ffi-rzmq. When libzmq is not found, the entire test suite exits early because ffi-rzmq chooses to call exit. Instead, I would prefer to catch LoadError and skip such related tests. In other cases, I would prefer to report an error instead of exiting.