From 2329b45dfc28941d32ba23219164496915ea7fef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 17 Mar 2021 12:19:39 +0100 Subject: [PATCH] =?utf8?q?Dateimanagement:=20Fileystem-Backend:=20aussagek?= =?utf8?q?r=C3=A4ftigere=20Fehlermeldung?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/File/Backend/Filesystem.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/File/Backend/Filesystem.pm b/SL/File/Backend/Filesystem.pm index ec67d7414..9daef3505 100644 --- a/SL/File/Backend/Filesystem.pm +++ b/SL/File/Backend/Filesystem.pm @@ -109,7 +109,9 @@ sub get_filepath { my ($self, %params) = @_; die "no dbfile" unless $params{dbfile}; my $path = $self->_filesystem_path($params{dbfile},$params{version}); - die "no file in backend get_filepath" if !-f $path; + + die "No file found at $path. Expected: $params{dbfile}{file_name}, file.id: $params{dbfile}{id}" if !-f $path; + return $path; } -- 2.20.1