From 3e74cdf941535c9a2ce004a2572e87ec9b80a1ec Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Fri, 14 Jul 2017 07:46:46 +0200 Subject: [PATCH] Filemanagement: Korrekte Fehlermeldung anzeigen --- SL/File.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SL/File.pm b/SL/File.pm index 1ecd7d510..8675b1870 100644 --- a/SL/File.pm +++ b/SL/File.pm @@ -326,7 +326,11 @@ sub _get_backend { die $::locale->text('backend "#1" not enabled',$backend_name) unless $obj->enabled; 1; } or do { - die $::locale->text('backend "#1" not found',$backend_name); + if ( $obj ) { + die $@; + } else { + die $::locale->text('backend "#1" not found',$backend_name); + } }; return $obj; } -- 2.20.1