diff --git a/cake/libs/cake_request.php b/cake/libs/cake_request.php index 9a67f240077..3be2818885c 100644 --- a/cake/libs/cake_request.php +++ b/cake/libs/cake_request.php @@ -422,7 +422,7 @@ public function __call($name, $params) { $type = strtolower(substr($name, 2)); return $this->is($type); } - throw new BadMethodCallException('Method does not exist'); + throw new BadMethodCallException(sprintf('Method %s does not exist', $name)); } /** @@ -539,7 +539,7 @@ public function addPaths($paths) { } /** - * Read a header from the Request information. + * Read an HTTP header from the Request information. * * @param string $name Name of the header you want. * @return mixed Either false on no header being set or the value of the header.