Merge pull request #500 from influxdata/fix-server-no-return
Fix several handlers that were not returning after errorpull/504/head
commit
10b18e579d
|
@ -183,6 +183,7 @@ func (h *Service) NewExploration(w http.ResponseWriter, r *http.Request) {
|
|||
if err != nil {
|
||||
msg := fmt.Errorf("Error: Failed to save Exploration")
|
||||
unknownErrorWithMessage(w, msg)
|
||||
return
|
||||
}
|
||||
|
||||
res := newExploration(e)
|
||||
|
|
|
@ -45,6 +45,7 @@ func (h *Service) NewLayout(w http.ResponseWriter, r *http.Request) {
|
|||
if layout, err = h.LayoutStore.Add(r.Context(), layout); err != nil {
|
||||
msg := fmt.Errorf("Error storing layout %v: %v", layout, err)
|
||||
unknownErrorWithMessage(w, msg)
|
||||
return
|
||||
}
|
||||
|
||||
res := newLayoutResponse(layout)
|
||||
|
|
|
@ -17,6 +17,7 @@ func (h *Service) GetMappings(w http.ResponseWriter, r *http.Request) {
|
|||
layouts, err := h.LayoutStore.All(ctx)
|
||||
if err != nil {
|
||||
Error(w, http.StatusInternalServerError, "Error loading layouts")
|
||||
return
|
||||
}
|
||||
|
||||
mp := getMappingsResponse{
|
||||
|
|
Loading…
Reference in New Issue