Bug 6699 follow-up
authorPaul Poulain <paul.poulain@biblibre.com>
Sat, 3 Dec 2011 06:43:15 +0000 (07:43 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Sat, 3 Dec 2011 06:43:15 +0000 (07:43 +0100)
The warn $error will issue this message if there is a message.
It's because how warn $blabla works : it does not work, you have to add ""

C4/Installer.pm

index ae55296..a7eb1f6 100644 (file)
@@ -531,7 +531,7 @@ sub load_sql {
 #   errors thrown while loading installer data should be logged
     if($error) {
       warn "C4::Installer::load_sql returned the following errors while attempting to load $filename:\n";
-      warn $error;
+      warn "$error";
     }
     return $error;
 }