29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-17 17:44:57 +00:00

Update Installer.php

Add update file for better debugging
This commit is contained in:
B01 2024-01-30 17:04:15 +01:00 committed by GitHub
parent 609eafcdf9
commit 3915cb15f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1282,7 +1282,7 @@ class Installer extends Adapter implements DatabaseAwareInterface
$db->setQuery($query)->execute();
} catch (\RuntimeException $e) {
if (!$canFail) {
$errorMessage = Text::sprintf('JLIB_INSTALLER_ERROR_SQL_ERROR', $e->getMessage());
$errorMessage = Text::sprintf('JLIB_INSTALLER_ERROR_SQL_ERROR', $e->getMessage() . ' (' . $file . ')');
// Log the error in the update log file
Log::add(Text::sprintf('JLIB_INSTALLER_UPDATE_LOG_QUERY', $file, $queryString), Log::INFO, 'Update');