DataManager improvements

This commit is contained in:
Taras Machyshyn
2014-10-23 12:18:17 +03:00
parent cdffb85df0
commit 867aa72038
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ class DataManager
{
$result = $this->getContainer()->get('fileManager')->removeInDir($this->cachePath);
if ($result === false) {
if ($result != true) {
throw new Exceptions\Error("Error while clearing cache");
}
@@ -87,7 +87,7 @@ class DataManager
$GLOBALS['log']->error('Fault to rebuild database schema'.'. Details: '.$e->getMessage());
}
if ($result === false) {
if ($result != true) {
throw new Exceptions\Error("Error while rebuilding database. See log file for details.");
}