changed route __call exception.

This commit is contained in:
Taylor Otwell
2011-10-16 21:35:11 -05:00
parent 494bc0b4a7
commit 3a08b138b0

View File

@@ -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.");
}
}