Skip to content

Commit 16a8f3e

Browse files
committed
More elaborate error messages
1 parent b13eb5b commit 16a8f3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sabre/DAV/Directory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getChild($name) {
3636
if ($child->getName()==$name) return $child;
3737

3838
}
39-
throw new Sabre_DAV_FileNotFoundException('File not found');
39+
throw new Sabre_DAV_FileNotFoundException('File not found: ' . $name);
4040

4141
}
4242

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

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

5555
}
5656

0 commit comments

Comments
 (0)