Skip to content
Snippets Groups Projects
Commit f7ed63d2 authored by Justus Dieckmann's avatar Justus Dieckmann
Browse files

Remove try catch in backup step, to let it show up on the error page

parent 884dc5d3
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,6 @@ class backup_manager {
*/
public static function create_course_backup($courseid) {
global $CFG, $DB;
try {
$course = get_course($courseid);
$record = new \stdClass();
$record->courseid = $courseid;
......@@ -91,11 +90,6 @@ class backup_manager {
$DB->update_record('tool_lifecycle_backups', $record, true);
return true;
} catch (\moodle_exception $e) {
debugging('There was a problem during backup!');
debugging($e->getMessage());
return false;
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment