diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-16 14:44:28 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-16 16:23:30 +0100 |
commit | 2b8a6a19bc24f57cb9ff90c291ab9e4743a7629e (patch) | |
tree | b04e7cc8aa48f7d6a268ccd13c52cf6eadb914ba | |
parent | 678ad217e2d311ddb324ab7721e1c990b3b28753 (diff) | |
download | nextcloud-server-2b8a6a19bc24f57cb9ff90c291ab9e4743a7629e.tar.gz nextcloud-server-2b8a6a19bc24f57cb9ff90c291ab9e4743a7629e.zip |
Use name of ICollection for exception message
* fixes #21230
-rw-r--r-- | lib/private/connector/sabre/objecttree.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/objecttree.php b/lib/private/connector/sabre/objecttree.php index 1e9b9ba59e2..8aaf26f0cc0 100644 --- a/lib/private/connector/sabre/objecttree.php +++ b/lib/private/connector/sabre/objecttree.php @@ -188,7 +188,7 @@ class ObjectTree extends \Sabre\DAV\Tree { $targetNodeExists = $this->nodeExists($destinationPath); $sourceNode = $this->getNodeForPath($sourcePath); if ($sourceNode instanceof \Sabre\DAV\ICollection && $targetNodeExists) { - throw new \Sabre\DAV\Exception\Forbidden('Could not copy directory ' . $sourceNode . ', target exists'); + throw new \Sabre\DAV\Exception\Forbidden('Could not copy directory ' . $sourceNode->getName() . ', target exists'); } list($sourceDir,) = \Sabre\HTTP\URLUtil::splitPath($sourcePath); list($destinationDir,) = \Sabre\HTTP\URLUtil::splitPath($destinationPath); |