changed route __call exception.
This commit is contained in:
parent
494bc0b4a7
commit
3a08b138b0
|
@ -209,7 +209,8 @@ public function handles($uri)
|
|||
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.");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue