From: Bernd Bleßmann Date: Wed, 17 Mar 2021 11:19:39 +0000 (+0100) Subject: Dateimanagement: Fileystem-Backend: aussagekräftigere Fehlermeldung X-Git-Tag: kivitendo-mebil_0.1-0~9^2~436 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2329b45dfc28941d32ba23219164496915ea7fef;p=kivitendo-erp.git Dateimanagement: Fileystem-Backend: aussagekräftigere Fehlermeldung --- 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; }