diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-31 01:07:34 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-31 01:07:34 -0700 |
| commit | 97b7948cd9c40b07a6d2412895a31bb0a4b984f3 (patch) | |
| tree | 79e4019cbd3180fe429e9474fce1b1377eb94782 | |
| parent | c9205458a16bde4de8f8bc40b448a216888a1041 (diff) | |
| download | seaweedfs-97b7948cd9c40b07a6d2412895a31bb0a4b984f3.tar.xz seaweedfs-97b7948cd9c40b07a6d2412895a31bb0a4b984f3.zip | |
adjust error message
| -rw-r--r-- | weed/shell/command_remote_meta_sync.go | 2 | ||||
| -rw-r--r-- | weed/shell/command_remote_mount.go | 2 | ||||
| -rw-r--r-- | weed/shell/command_remote_uncache.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_remote_meta_sync.go b/weed/shell/command_remote_meta_sync.go index 9005ba86f..5dbf55987 100644 --- a/weed/shell/command_remote_meta_sync.go +++ b/weed/shell/command_remote_meta_sync.go @@ -62,7 +62,7 @@ func (c *commandRemoteMetaSync) Do(args []string, commandEnv *CommandEnv, writer // pull metadata from remote if err = pullMetadata(commandEnv, writer, util.FullPath(localMountedDir), remoteStorageMountedLocation, util.FullPath(*dir), remoteStorageConf); err != nil { - return fmt.Errorf("cache content data: %v", err) + return fmt.Errorf("cache meta data: %v", err) } return nil diff --git a/weed/shell/command_remote_mount.go b/weed/shell/command_remote_mount.go index 687098bff..8ac30f70d 100644 --- a/weed/shell/command_remote_mount.go +++ b/weed/shell/command_remote_mount.go @@ -171,7 +171,7 @@ func (c *commandRemoteMount) syncMetadata(commandEnv *CommandEnv, writer io.Writ // pull metadata from remote if err = pullMetadata(commandEnv, writer, util.FullPath(dir), remote, util.FullPath(dir), remoteConf); err != nil { - return fmt.Errorf("cache content data: %v", err) + return fmt.Errorf("cache metadata: %v", err) } return nil diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go index 369f2b3d4..a2806b882 100644 --- a/weed/shell/command_remote_uncache.go +++ b/weed/shell/command_remote_uncache.go @@ -74,7 +74,7 @@ func (c *commandRemoteUncache) Do(args []string, commandEnv *CommandEnv, writer // pull content from remote if err = c.uncacheContentData(commandEnv, writer, util.FullPath(*dir), fileFiler); err != nil { - return fmt.Errorf("cache content data: %v", err) + return fmt.Errorf("uncache content data: %v", err) } return nil |
