diff --git a/handlers.go b/handlers.go index ff5d320c1208ef12d98c4ea89916a02bc811302d..239d1b6e917b45ae56fd8ee3f4b90a590293f7b8 100644 --- a/handlers.go +++ b/handlers.go @@ -160,6 +160,7 @@ func BridgeState(w http.ResponseWriter, r *http.Request) { if err != nil { log.Printf("Bug: %s", err) http.Error(w, "failed to marshal test tesult", http.StatusInternalServerError) + return } SendJSONResponse(w, string(jsonResult)) }