silverstripe/silverstripe-cms — pull request #1039 by wilr (2014-07-01 02:44:41+00:00)
Title: FIX ensure controller stack is updated when execution halted by an exception

From https://github.com/silverstripe/silverstripe-framework/issues/2467

popCurrent would be incorrectly not pop a controller from the controller stack if an exception was throw from inside the handleRequest() method.

This change captures the exception, ensures the controller is popped from the stack and passes the exception along.