MDL-30391 Backup: Exception in restore should be thrown as it is to be handled by calling function
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ if (!$restore->is_independent()) {
|
||||
$restore->execute();
|
||||
} catch(Exception $e) {
|
||||
$restore->cleanup();
|
||||
throw new moodle_exception((string)$e);
|
||||
throw $e;
|
||||
}
|
||||
} else {
|
||||
$restore->save_controller();
|
||||
|
||||
Reference in New Issue
Block a user