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:
parent
609eafcdf9
commit
3915cb15f2
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue
Block a user