From 0b6428edbaf4da7e99847c8960d28d7d55d9820c Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Fri, 12 Jul 2013 13:38:45 -0700 Subject: [PATCH] add addition msg --- client_handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client_handlers.go b/client_handlers.go index c151b05d9..07e360db7 100644 --- a/client_handlers.go +++ b/client_handlers.go @@ -45,7 +45,7 @@ func SetHttpHandler(w *http.ResponseWriter, req *http.Request) { if len(command.Value) == 0 { (*w).WriteHeader(http.StatusBadRequest) - (*w).Write(newJsonError(200, "")) + (*w).Write(newJsonError(200, "Set")) return } @@ -59,7 +59,7 @@ func SetHttpHandler(w *http.ResponseWriter, req *http.Request) { (*w).WriteHeader(http.StatusBadRequest) - (*w).Write(newJsonError(202, "")) + (*w).Write(newJsonError(202, "Set")) } dispatch(command, w, req, true) @@ -136,7 +136,7 @@ func dispatch(c Command, w *http.ResponseWriter, req *http.Request, client bool) return } (*w).WriteHeader(http.StatusInternalServerError) - (*w).Write(newJsonError(300, "")) + (*w).Write(newJsonError(300, "No Leader")) return } else {