Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Catchable fatal errors are handled inconsistently #278
cmb69 added a commit to cmb69/cmsimple-xh that referenced this issue
Aug 30, 2017
We are not convinced that ignoring recoverable (formerly called catchable) errors (`E_RECOVERABLE_ERROR`) is a good idea, generally. Furthermore, to do so would require a general error handler (opposed to our long standing debug mode handler). Therefore we decide to treat recoverable errors just like user errors (E_USER_ERROR), i.e. to bail out whenever they occur. We changing the call to `die()` to `XH_exit()` to be able to mock the function in a respective test.