Skip to content

Commit

Permalink
fix message mistakenly appended
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Sep 12, 2023
1 parent 63eea2d commit 355b3bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ceresdb/client_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,13 @@ func (c *clientImpl) Write(ctx context.Context, req WriteRequest) (WriteResponse
}

// Only return first error message now.
if ret.Message != "" {
if ret.Message == "" {
ret.Message = err.Error()
}
ret = combineWriteResponse(ret, WriteResponse{Failed: uint32(len(points))})
continue
}

ret = combineWriteResponse(ret, response)
}

Expand Down

0 comments on commit 355b3bb

Please sign in to comment.