mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1190 - Better error reporting and disk cleanup.
SVN:trunk[5145]
This commit is contained in:
@@ -61,6 +61,7 @@ try
|
||||
catch (Exception $e)
|
||||
{
|
||||
$oPage->p('Error: '.$e->getMessage());
|
||||
IssueLog::Error($sOperation.' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
$oPage->output();
|
||||
@@ -156,6 +157,7 @@ EOF
|
||||
{
|
||||
$oRestoreMutex->Unlock();
|
||||
$oPage->p('Error: '.$e->getMessage());
|
||||
IssueLog::Error($sOperation.' - '.$e->getMessage());
|
||||
}
|
||||
}
|
||||
$oPage->output();
|
||||
@@ -179,6 +181,6 @@ EOF
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
IssueLog::Error($e->getMessage());
|
||||
IssueLog::Error($sOperation.' - '.$e->getMessage());
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ class DBRestore extends DBBackup
|
||||
$oArchive->extractFileTo($sDataDir, 'itop-dump.sql');
|
||||
$sDataFile = $sDataDir.'/itop-dump.sql';
|
||||
$this->LoadDatabase($sDataFile);
|
||||
unlink($sDataFile);
|
||||
SetupUtils::rrmdir($sDataDir);
|
||||
|
||||
// Update the code
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user