report errors in send_file
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 14 Apr 2012 18:47:12 +0000 (20:47 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 14 Apr 2012 18:47:12 +0000 (20:47 +0200)
lib/CloudStore/API.pm

index 39a27cd..c290794 100644 (file)
@@ -227,6 +227,8 @@ sub send_file {
                $self->append( $t, 'recv', $size, $f->{uid}, $t_path );
                $self->append_meta('md5sum', $t, $md5 => $t_path ) if $md5; # md5sum for received files! FIXME -- cross-slice md5
                $self->refresh_file_list( $t );
+       } else {
+               warn "ERROR: send_file $f_full -> $t_full: $!";
        }
 
        return $size;