Skip to content

Commit

Permalink
Updating doc block and exception in CakeRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 1, 2010
1 parent a7a4285 commit 81d0385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/cake_request.php
Expand Up @@ -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));
}

/**
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 81d0385

Please sign in to comment.