Skip to content

Commit a936f87

Browse files
committed
Merge pull request bcit-ci#4264 from DavidOtis/exceptions/Router
show_error() to RuntimeException in CI_Router
2 parents 947efb2 + 9e20161 commit a936f87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/core/Router.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,13 @@ protected function _set_request($segments = array())
285285
* Set default controller
286286
*
287287
* @return void
288+
* @throws RuntimeException
288289
*/
289290
protected function _set_default_controller()
290291
{
291292
if (empty($this->default_controller))
292293
{
293-
show_error('Unable to determine what should be displayed. A default route has not been specified in the routing file.');
294+
throw new RuntimeException('Unable to determine what should be displayed. A default route has not been specified in the routing file.');
294295
}
295296

296297
// Is the method being specified?

0 commit comments

Comments
 (0)