diff --git a/backup/restore.php b/backup/restore.php index 04ed41a0f28..2ac6b7847f9 100644 --- a/backup/restore.php +++ b/backup/restore.php @@ -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();