From ecdd2d183cf030af400bbedf71a039160a2a3e36 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Tue, 22 Nov 2011 09:54:47 +0800 Subject: [PATCH] MDL-30391 Backup: Exception in restore should be thrown as it is to be handled by calling function --- backup/restore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();