From c5dc49746255a5a49870a40981f3b782792e708c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 26 Jul 2017 09:43:55 +0200 Subject: [PATCH] =?utf8?q?die=20f=C3=BCr=20eine=20Backend-Funktion=20(Mini?= =?utf8?q?-DMS)=20gespr=C3=A4chiger=20gemacht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Hintergrund #275. Der Administrator muss hier ziemlich raten, was falsch gelaufen ist. Minimal mehr Infos, sodass eine Analyse des Dateisystems serverseitig möglich ist. --- SL/File/Backend/Filesystem.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/File/Backend/Filesystem.pm b/SL/File/Backend/Filesystem.pm index fe8604c0b..45254c9d5 100644 --- a/SL/File/Backend/Filesystem.pm +++ b/SL/File/Backend/Filesystem.pm @@ -80,7 +80,8 @@ sub get_mtime { die "unknown version" if $params{version} && ($params{version} < 0 || $params{version} > $params{dbfile}->backend_data) ; my $path = $self->_filesystem_path($params{dbfile},$params{version}); - die "no file found in backend get_mtime" if !-f $path; + die "No file found at $path. Expected: $params{dbfile}{file_name}, file.id: $params{dbfile}{id}" if !-f $path; + my @st = stat($path); my $dt = DateTime->from_epoch(epoch => $st[9])->clone(); return $dt; -- 2.20.1