From c7f5eb4bc5ebe3e346ee05237408c4a1d1720cd8 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Wed, 18 Dec 2019 09:27:59 +0100
Subject: [PATCH] Bug 13897: Catch the error and warn it

---
 C4/Installer.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/C4/Installer.pm b/C4/Installer.pm
index 2b911f204e..2e799c2fd6 100644
--- a/C4/Installer.pm
+++ b/C4/Installer.pm
@@ -492,6 +492,9 @@ sub load_sql {
                 }
             };
         }
+        if ($@){
+            warn "Something went wrong loading file $filename ($@)";
+        }
     };
     #   errors thrown while loading installer data should be logged
     if( $dup_stderr ) {
-- 
2.17.1