changed route __call exception.

This commit is contained in:
Taylor Otwell 2011-10-16 21:35:11 -05:00
parent 494bc0b4a7
commit 3a08b138b0
1 changed files with 2 additions and 1 deletions

View File

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