From 90f0e0b497ad75866cb8d15dd1a593f31ffbc6f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 23 Nov 2021 12:19:29 +0100 Subject: [PATCH] =?utf8?q?F:B:Webdav=20$path=20enth=C3=A4lt=20Pfad=20+=20D?= =?utf8?q?atei,=20entsprechend=20vereinheitlicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/File/Backend/Webdav.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/File/Backend/Webdav.pm b/SL/File/Backend/Webdav.pm index 0e9525e05..b1e48edf9 100644 --- a/SL/File/Backend/Webdav.pm +++ b/SL/File/Backend/Webdav.pm @@ -73,7 +73,7 @@ sub get_mtime { die "no dbfile" unless $params{dbfile}; $main::lxdebug->message(LXDebug->DEBUG2(), "version=" .$params{version}); my ($path, undef, undef) = $self->webdav_path($params{dbfile}); - die "no file found in backend" if !-f $path; + die "No file found in Backend: " . $path unless -f $path; my @st = stat($path); my $dt = DateTime->from_epoch(epoch => $st[9])->clone(); $main::lxdebug->message(LXDebug->DEBUG2(), "dt=" .$dt); @@ -84,7 +84,7 @@ sub get_filepath { my ($self, %params) = @_; die "no dbfile" unless $params{dbfile}; my ($path, undef, undef) = $self->webdav_path($params{dbfile}); - die "Path not found: " . $path unless -f $path; + die "No file found in Backend: " . $path unless -f $path; return $path; } -- 2.20.1