|
@@ -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
|