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 11:39:18 +08:00
parent 79b0fece1f
commit ecdd2d183c
+1 -1
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();