]> git.koha-community.org Git - koha.git/commit
Bug 13669: Catch the errors to have them to the logs
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 21 May 2016 08:04:27 +0000 (09:04 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Wed, 25 May 2016 08:06:07 +0000 (10:06 +0200)
commit09a35722ab562a5fe33f933d77d2d18510ee0122
tree325abc341d8e3b5156824f045ab568a474c36d49
parentb5035de9d6853fffe5ff84fa7091433072ec26ab
Bug 13669: Catch the errors to have them to the logs

This patch redirect STDERR to a variable to retrieve the errors raised
by the DBMS when loading a sql file, it could be useful to debug errors.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
It's better of course, trying to load a failed fiel
it outputs mysl errors
DBD::mysql::st execute failed: You have an error in your SQL syntax...
No errors

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 8da05cb2a8793b5866c50f796569ce3336807256)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Installer.pm