added info to owns fragrment error message

This commit is contained in:
Todd Gruben 2016-06-10 10:19:54 -05:00
parent 32697531fd
commit a2187b968c

View file

@ -393,7 +393,8 @@ func (h *Handler) handlePostImport(w http.ResponseWriter, r *http.Request) {
// Validate that this handler owns the slice.
if !h.Cluster.OwnsFragment(h.Host, db, slice) {
http.Error(w, "host does not own slice", http.StatusPreconditionFailed)
mesg := fmt.Sprintf("host does not own slice %s-%s slice:%d", h.Host, db, slice)
http.Error(w, mesg, http.StatusPreconditionFailed)
return
}