From c47cc688eae932f959d9dd1542dc16e38483b196 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Thu, 29 Jun 2017 09:00:35 -0500 Subject: [PATCH] p2p/simulations: removed requirement for a mocker from network --- p2p/simulations/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p2p/simulations/http.go b/p2p/simulations/http.go index c9140412e9..fbfb9e0c3e 100644 --- a/p2p/simulations/http.go +++ b/p2p/simulations/http.go @@ -320,7 +320,8 @@ func (s *Server) StartMocker(w http.ResponseWriter, req *http.Request) { mockerid := req.Context().Value("mock").(string) if len(s.Mockers) == 0 { - http.Error(w, "mocker not configured", http.StatusInternalServerError) + //don't require a mocker to be present + s.JSON(w, http.StatusNotModified, "No mocker configured") return }