Skip to content

Commit

Permalink
More elaborate error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Jun 28, 2008
1 parent b13eb5b commit 16a8f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Sabre/DAV/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getChild($name) {
if ($child->getName()==$name) return $child;

}
throw new Sabre_DAV_FileNotFoundException('File not found');
throw new Sabre_DAV_FileNotFoundException('File not found: ' . $name);

}

Expand All @@ -50,7 +50,7 @@ public function getChild($name) {
*/
public function createFile($name, $data = null) {

throw new Sabre_DAV_PermissionDeniedException('Permission denied to create file');
throw new Sabre_DAV_PermissionDeniedException('Permission denied to create file (filename ' . $name . ')');

}

Expand Down

0 comments on commit 16a8f3e

Please sign in to comment.