grpc send error via response instead of grpc error

This commit is contained in:
Chris Lu committed 2020-01-25 09:17:19 -08:00
1 parent 3f6e0e34cb
commit c48fc8b4de
14 files changed
+152 -124

No files matched your search

+1 -1
View File
@@ -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 {