aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_fs_meta_load.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-01-25 09:17:19 -0800
committerChris Lu <chris.lu@gmail.com>2020-01-25 09:17:19 -0800
commitc48fc8b4de5922c44d22da306699f789353ecdd4 (patch)
treedc94157e8ad2e547b807357227fa7bf85124af40 /weed/shell/command_fs_meta_load.go
parent3f6e0e34cbb75fa440c8ccd182adb68ac7301847 (diff)
downloadseaweedfs-c48fc8b4de5922c44d22da306699f789353ecdd4.tar.xz
seaweedfs-c48fc8b4de5922c44d22da306699f789353ecdd4.zip
grpc send error via response instead of grpc error
Diffstat (limited to 'weed/shell/command_fs_meta_load.go')
-rw-r--r--weed/shell/command_fs_meta_load.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_fs_meta_load.go b/weed/shell/command_fs_meta_load.go
index 5ea8de9f5..52dd0321b 100644
--- a/weed/shell/command_fs_meta_load.go
+++ b/weed/shell/command_fs_meta_load.go
@@ -80,7 +80,7 @@ func (c *commandFsMetaLoad) Do(args []string, commandEnv *CommandEnv, writer io.
return err
}
- if _, err = client.CreateEntry(ctx, &filer_pb.CreateEntryRequest{
+ if err := filer_pb.CreateEntry(ctx, client, &filer_pb.CreateEntryRequest{
Directory: fullEntry.Dir,
Entry: fullEntry.Entry,
}); err != nil {