From a2187b968ceb00f03eca05adf216645a04595c33 Mon Sep 17 00:00:00 2001 From: Todd Gruben Date: Fri, 10 Jun 2016 10:19:54 -0500 Subject: [PATCH] added info to owns fragrment error message --- handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler.go b/handler.go index c1c44d945..2c1510d53 100644 --- a/handler.go +++ b/handler.go @@ -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 }