Bulk export: don't forget to cleanup in case of error.

SVN:trunk[3612]
This commit is contained in:
Denis Flaven
2015-06-25 10:01:14 +00:00
parent f25980bb0d
commit 6e92438282

View File

@@ -490,6 +490,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false)
if ($aStatus['code'] == 'error') if ($aStatus['code'] == 'error')
{ {
$oExporter->Cleanup();
ReportErrorAndExit("Export failed: '{$aStatus['message']}'"); ReportErrorAndExit("Export failed: '{$aStatus['message']}'");
} }
else else
@@ -501,6 +502,7 @@ function DoExport(Page $oP, BulkExport $oExporter, $bInteractive = false)
} }
} }
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
// Command Line mode // Command Line mode