From 6e92438282be850603827a4946b8078877a3a045 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 25 Jun 2015 10:01:14 +0000 Subject: [PATCH] Bulk export: don't forget to cleanup in case of error. SVN:trunk[3612] --- webservices/export-v2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webservices/export-v2.php b/webservices/export-v2.php index 4b02bf0436..cc978126d0 100644 --- a/webservices/export-v2.php +++ b/webservices/export-v2.php @@ -490,6 +490,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false) if ($aStatus['code'] == 'error') { + $oExporter->Cleanup(); ReportErrorAndExit("Export failed: '{$aStatus['message']}'"); } else @@ -501,6 +502,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false) } } + ///////////////////////////////////////////////////////////////////////////// // // Command Line mode