Răsfoiți Sursa

Make course copy error messaging even clearer

Yannick Warnier 8 ani în urmă
părinte
comite
a1320fb4cd

+ 2 - 2
src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php

@@ -922,10 +922,10 @@ class CourseRestorer
                         }
                         // Issue with destination directories?
                         if (!is_dir(dirname($path.$document->path))) {
-                            error_log('Course copy generated an ignorable error while trying to copy to '.dirname($path.$document->path).': destination directory not found');
+                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not found');
                         }
                         if (!is_writeable(dirname($path.$document->path))) {
-                            error_log('Course copy generated an ignorable error while trying to copy to '.dirname($path.$document->path).': destination directory not writable');
+                            error_log('Course copy generated an ignorable error while trying to copy '.$this->course->backup_path.'/'.$document->path.' to '.dirname($path.$document->path).': destination directory not writable');
                         }
                     }
                 } // end file doesn't exist