-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.6, 3.1.2, 3.2
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_30_STABLE, MOODLE_31_STABLE
-
If you restore by uploading a file, then when the file is copied to the temp folder at the start of the process, no check is done on the return code of the copy.
Therefore, if the copy fails, you just get an error message after the redirect that does not seem to make any sense. Reporting the error as soon as it is detected shold make debugging easier.
Sadly, there is no way to know what caused the error, since the API just returns true/false, rather than throwing an informative exception.