소스 검색

Make course copy error messaging even clearer

Yannick Warnier 8 년 전
부모
커밋
a1320fb4cd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Chamilo/CourseBundle/Component/CourseCopy/CourseRestorer.php

+ 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