From 295f76e3314af53a253a78b5efe311cf0337b046 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Tue, 28 May 2013 19:08:59 +0200 Subject: [PATCH] FIX Making path names consistent I've changed the variables to use the absolute path as the path is unhelpful for debugging and this is more consistent with the other lines of code below --- filesystem/File.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filesystem/File.php b/filesystem/File.php index 16db447bf64..ca196db149c 100644 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -527,13 +527,13 @@ public function updateFilesystem() { if(!is_a($this, 'Folder')) { // Only throw a fatal error if *both* before and after paths don't exist. if(!file_exists($pathBeforeAbs)) { - throw new Exception("Cannot move $pathBefore to $pathAfter - $pathBefore doesn't exist"); + throw new Exception("Cannot move $pathBeforeAbs to $pathAfterAbs - $pathBeforeAbs doesn't exist"); } // Check that target directory (not the file itself) exists. // Only check if we're dealing with a file, otherwise the folder will need to be created if(!file_exists(dirname($pathAfterAbs))) { - throw new Exception("Cannot move $pathBefore to $pathAfter - Directory " . dirname($pathAfter) + throw new Exception("Cannot move $pathBeforeAbs to $pathAfterAbs - Directory " . dirname($pathAfter) . " doesn't exist"); } }