Commit 3a08b138 authored by Taylor Otwell's avatar Taylor Otwell

changed route __call exception.

parent 494bc0b4
......@@ -209,7 +209,8 @@ class Route {
public function __call($method, $parameters)
{
if (strpos($method, 'is_') === 0) return $this->is(substr($method, 3));
throw new \Exception('Method "'.$method.'" not found', E_NOTICE);
throw new \Exception("Call to undefined method [$method] on Route class.");
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment