Skip to content

Commit

Permalink
Merge pull request #149 from msaf1980/context_canceled_504
Browse files Browse the repository at this point in the history
fix check error in tags autocompelete handler
  • Loading branch information
Felixoid authored Apr 23, 2021
2 parents 03e5f3b + 5060e36 commit 7ea9950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autocomplete/autocomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func (h *Handler) ServeValues(w http.ResponseWriter, r *http.Request) {
nil,
)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
clickhouse.HandleError(w, err)
return
}

Expand All @@ -268,7 +268,7 @@ func (h *Handler) ServeValues(w http.ResponseWriter, r *http.Request) {

b, err := json.Marshal(rows)
if err != nil {
clickhouse.HandleError(w, err)
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}

Expand Down

0 comments on commit 7ea9950

Please sign in to comment.