report refresh_file_list errors
authorDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Sat, 14 Apr 2012 15:27:13 +0000 (17:27 +0200)
committerDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Sat, 14 Apr 2012 15:27:13 +0000 (17:27 +0200)
lib/CloudStore/API.pm

index 8a054ba..39a27cd 100644 (file)
@@ -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";
        }
 }