From 2497ca513432ff509c715bd505ad557d3cd1d93e Mon Sep 17 00:00:00 2001 From: remusb Date: Wed, 22 Nov 2017 00:38:25 +0200 Subject: [PATCH] cache: add extra logging in Move and Copy --- cache/cache.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cache/cache.go b/cache/cache.go index 681b8fcd9..ec87fb535 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -731,6 +731,7 @@ func (f *Fs) PutUnchecked(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOpt func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) { do := f.Fs.Features().Copy if do == nil { + fs.Errorf(src, "source remote (%v) doesn't support Copy", src.Fs()) return nil, fs.ErrorCantCopy } @@ -770,6 +771,7 @@ func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) { func (f *Fs) Move(src fs.Object, remote string) (fs.Object, error) { do := f.Fs.Features().Move if do == nil { + fs.Errorf(src, "source remote (%v) doesn't support Move", src.Fs()) return nil, fs.ErrorCantMove }