Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2010-03-03 21:39:24 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2010-03-03 21:48:59 (GMT)
commit41f3e3761aeeac5611a286372355dcf3bc06e495 (patch)
treeedf3449645fc456e6078f9b3dcb7b613e6025142
parentd9b57be0bb4b6514e39d6d8097385f7feccff0f2 (diff)
Be more verbose on files moving errors
-rw-r--r--site/app/controllers/components/developers.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/app/controllers/components/developers.php b/site/app/controllers/components/developers.php
index 83c8a5f..0d07007 100644
--- a/site/app/controllers/components/developers.php
+++ b/site/app/controllers/components/developers.php
@@ -580,7 +580,7 @@ class DevelopersComponent extends Object {
}
// We must copy instead of rename now in case there are other platforms
if (!copy($currentPath, $newPath)) {
- return sprintf(___('An error occurred moving %s.'), $data['File']['db']['filename']);
+ return sprintf(___('An error occurred moving %s: %s %s.'), $data['File']['db']['filename'], $currentPath, $newPath);
}
$fileUpdates['filename'] = $filename;
}
@@ -656,7 +656,7 @@ class DevelopersComponent extends Object {
unlink($newPath);
}
if (!rename($currentPath, $newPath)) {
- $errors->addError(sprintf(___('An error occurred moving %s.'), $file['filename']));
+ $errors->addError(sprintf(___('An error occurred moving %s: %s %s.'), $file['filename'], $currentPath, $newPath));
}
$fileUpdates[$file['id']]['filename'] = $newFilename;
}