We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 947efb2 + 9e20161 commit a936f87Copy full SHA for a936f87
system/core/Router.php
@@ -285,12 +285,13 @@ protected function _set_request($segments = array())
285
* Set default controller
286
*
287
* @return void
288
+ * @throws RuntimeException
289
*/
290
protected function _set_default_controller()
291
{
292
if (empty($this->default_controller))
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.');
295
}
296
297
// Is the method being specified?
0 commit comments