Skip to content

Commit

Permalink
Added detail to the 404 failure
Browse files Browse the repository at this point in the history
  • Loading branch information
twalder-docnet committed Mar 1, 2015
1 parent ef35c7d commit 1c793c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Docnet/JAPI/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function setup($str_controller, $str_action, $bol_parse = TRUE)
$this->str_controller = ($bol_parse ? $this->parseController($str_controller) : $str_controller);
$this->str_action = ($bol_parse ? $this->parseAction($str_action) : $str_action);
if (!method_exists($this->str_controller, $this->str_action)) {
throw new Exceptions\Routing("Could not find controller/action pair");
throw new Exceptions\Routing("Could not find controller/action pair: {$this->str_controller}/{$this->str_action}");
}
}

Expand Down

0 comments on commit 1c793c0

Please sign in to comment.