operations: fix typo in log messages

I assume this must be a typo as %T of dir would only ever print "string"
This commit is contained in:
nielash
2024-03-07 11:09:07 +00:00
committed by Nick Craig-Wood
parent 354ea6fff3
commit 6a72cfd6e1
+2 -2
View File
@@ -2587,7 +2587,7 @@ func CopyDirMetadata(ctx context.Context, f fs.Fs, dst fs.Directory, dir string,
} else { } else {
do, ok := dst.(fs.SetMetadataer) do, ok := dst.(fs.SetMetadataer)
if !ok { 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) err = do.SetMetadata(ctx, metadata)
newDst = dst 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 // 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)
} }