From 6a72cfd6e1432afb076600064c312b777d1b74dc Mon Sep 17 00:00:00 2001 From: nielash Date: Mon, 4 Mar 2024 00:57:27 -0500 Subject: [PATCH] operations: fix typo in log messages I assume this must be a typo as %T of dir would only ever print "string" --- fs/operations/operations.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/operations/operations.go b/fs/operations/operations.go index b9eed93a1..116f291e8 100644 --- a/fs/operations/operations.go +++ b/fs/operations/operations.go @@ -2587,7 +2587,7 @@ func CopyDirMetadata(ctx context.Context, f fs.Fs, dst fs.Directory, dir string, } else { do, ok := dst.(fs.SetMetadataer) if !ok { - return nil, fmt.Errorf("internal error: expecting directory %T from %v to have SetMetadata method: %w", dir, f, fs.ErrorNotImplemented) + return nil, fmt.Errorf("internal error: expecting directory %s (%T) from %v to have SetMetadata method: %w", logName, dst, f, fs.ErrorNotImplemented) } err = do.SetMetadata(ctx, metadata) newDst = dst @@ -2639,5 +2639,5 @@ func SetDirModTime(ctx context.Context, f fs.Fs, dst fs.Directory, dir string, m } // Something should have worked so return an error - return nil, fmt.Errorf("no method to set directory modtime found for %v (%T): %w", f, dir, fs.ErrorNotImplemented) + return nil, fmt.Errorf("no method to set directory modtime found for %v (%T): %w", f, dst, fs.ErrorNotImplemented) }