mirror of
https://github.com/moodle/moodle.git
synced 2025-06-01 13:46:35 +02:00
MDL-30391 Backup: Exception in restore should be thrown as it is to be handled by calling function
This commit is contained in:
parent
79b0fece1f
commit
ecdd2d183c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user