From aa4594b1d15543a667d4e8d5d1763d153bf6c93d Mon Sep 17 00:00:00 2001 From: Tim Marx Date: Mon, 9 Sep 2019 12:56:04 +0200 Subject: [PATCH] warn if filesize info couldn't be read due to error This sh Signed-off-by: Tim Marx --- PVE/Storage/Plugin.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index ed71fe4..6b79e7a 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -742,6 +742,8 @@ sub file_size_info { }); }; + warn $@ if $@; + return wantarray ? ($size, $format, $used, $parent) : $size; }