Skip to content

Commit

Permalink
clarify error messages for bad mutation streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSavage committed Nov 29, 2023
1 parent 33369af commit 3a012ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datatype/labelmap/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ func (d *Data) handleMutations(ctx *datastore.VersionedCtx, w http.ResponseWrite
switch strings.ToLower(r.Method) {
case "get":
if err := server.StreamMutationsForVersion(w, ctx.VersionUUID(), d.DataUUID()); err != nil {
server.BadRequest(w, r, "unable to write mutaions: %v", err)
server.BadRequest(w, r, "unable to write mutations to client: %v", err)
}
timedLog.Infof("HTTP GET mutations (%s)", r.URL)

Expand Down Expand Up @@ -726,7 +726,7 @@ func (d *Data) handleMutationsRange(ctx *datastore.VersionedCtx, w http.Response
server.BadRequest(w, r, err)
}
if err := server.StreamMutationsForSequence(w, d.DataUUID(), uuidSeq); err != nil {
server.BadRequest(w, r, "unable to write mutaions: %v", err)
server.BadRequest(w, r, "unable to write mutations to client: %v", err)
}
timedLog.Infof("HTTP GET mutations-range (%s)", r.URL)
}
Expand Down

0 comments on commit 3a012ce

Please sign in to comment.