Clarify some error messages

This commit is contained in:
Alan Bernstein 2019-11-29 12:48:08 -06:00 committed by Matt Jaffee
parent aba67364b1
commit 628def3db7
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
2 changed files with 2 additions and 2 deletions

2
api.go
View file

@ -1121,7 +1121,7 @@ func (api *API) ImportValue(ctx context.Context, req *ImportValueRequest, opts .
}
}
return errors.Wrap(err, "importing")
return errors.Wrap(err, "importing value")
}
options.IgnoreKeyCheck = true

View file

@ -1730,7 +1730,7 @@ func (h *Handler) handlePostImportRoaring(w http.ResponseWriter, r *http.Request
// Marshal response object.
buf, err := h.api.Serializer.Marshal(resp)
if err != nil {
http.Error(w, fmt.Sprintf("marshal import response: %v", err), http.StatusInternalServerError)
http.Error(w, fmt.Sprintf("marshal import-roaring response: %v", err), http.StatusInternalServerError)
return
}