This commit is contained in:
Yuri Kuznetsov
2024-09-15 13:29:15 +03:00
parent 8796693613
commit d70ef1e6cd
64 changed files with 101 additions and 200 deletions
+3 -6
View File
@@ -253,8 +253,7 @@ class Installer
}
$this->language = $language;
}
catch (Throwable $e) {
} catch (Throwable $e) {
echo "Error: " . $e->getMessage();
$GLOBALS['log']->error($e->getMessage());
@@ -328,8 +327,7 @@ class Installer
try {
$this->databaseHelper->createPDO($params);
}
catch (Exception $e) {
} catch (Exception $e) {
if (!$createDatabase) {
throw $e;
}
@@ -431,8 +429,7 @@ class Installer
{
try {
$this->app->getContainer()->getByClass(DataManager::class)->rebuild();
}
catch (Exception) {
} catch (Exception) {
$this->auth();
$this->app->getContainer()->getByClass(DataManager::class)->rebuild();
+1 -2
View File
@@ -95,8 +95,7 @@ if (
try {
$installer->checkDatabaseConnection($databaseParams, true);
}
catch (\Exception $e) {
} catch (\Exception $e) {
$isConnected = false;
$result['success'] = false;
$result['errors']['dbConnect']['errorCode'] = $e->getCode();