diff --git a/lib/Sabre/DAV/Directory.php b/lib/Sabre/DAV/Directory.php index fc003867f5..d796f95cd2 100644 --- a/lib/Sabre/DAV/Directory.php +++ b/lib/Sabre/DAV/Directory.php @@ -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); } @@ -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 . ')'); }