Project: moodle
Issue MDL-41347: tool_uploadcourse: Invalid restore files are not well handled
If there are invalid restore files (or courses to restore from), the prepare() method does not return false, even though it logs the errors. This causes the proceed() method to be called, which raises an exception because it should not happen. The course method to get the content restore dir should return whether it was successful or not, in order to return false during the prepare method.
Story points: 3