From 0f5f3f480acaa07d44841afcdfe4f3c693d450e5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Dec 2017 13:58:04 -0300 Subject: [PATCH] Bug 19760: Die if koha-conf is not accessible We got a lot of support questions because scripts are executed without the correct environment/user. We could die and provide more useful information --- Koha/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Config.pm b/Koha/Config.pm index f89ffb9a33..3b1e9eb2bf 100644 --- a/Koha/Config.pm +++ b/Koha/Config.pm @@ -48,7 +48,7 @@ sub read_from_file { }; if ($@) { - warn "Error reading file $file"; + die "\nError reading file $file.\nMake sure you are using the correct user (use koha-shell should resolve this problem)\n\n"; } return $xml; -- 2.11.0