MDL-30391 Backup: Exception in restore should be thrown as it is to be handled by calling function

This commit is contained in:
Rajesh Taneja 2011-11-22 09:54:47 +08:00
parent 79b0fece1f
commit ecdd2d183c

View File

@ -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();