From 03d21c8b5c3ce89af9fd2b4bb5730d7af995baf3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 14 Apr 2012 17:27:13 +0200 Subject: [PATCH] report refresh_file_list errors --- lib/CloudStore/API.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/CloudStore/API.pm b/lib/CloudStore/API.pm index 8a054ba..39a27cd 100644 --- a/lib/CloudStore/API.pm +++ b/lib/CloudStore/API.pm @@ -307,7 +307,9 @@ sub refresh_file_list { my $full_path = "$user->{dir}/.meta/files"; if ( -e $full_path ) { warn "## refresh_file_list $full_path"; - unlink $full_path; + unlink $full_path || warn "unlink $full_path: $!"; + } else { + warn "## refresh_file_list $full_path missing"; } } -- 2.20.1