]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 23 May 2016 16:47:32 +0000 (16:47 +0000)
commit8da05cb2a8793b5866c50f796569ce3336807256
tree6542f1a5cd844854ef26dc3290db6aa72dfc9485
parent080f5a6b8ed1c958983bd8f528bda4b32cc76ebf
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>
C4/Installer.pm