Skip to content

Commit

Permalink
Исправил ответ при ошибке
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris committed Dec 28, 2024
1 parent 992bcb5 commit 655104c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func (rt *Router) ApiHandler(w http.ResponseWriter, r *http.Request) {

// Если в кластере есть недовосстановленные индексы - прерываем
if ch_status.InitializingShards > 5 || ch_status.UnassignedShards > 5 {
msg := `{"message":"Indices will not be restored at now. Please wait", "error":1}`
msg := `{"error":"Indices will not be restored at now. Please wait"}`
http.Error(w, msg, http.StatusTooManyRequests)
log.Println(remoteIP, "\t", r.Method, "\t", r.URL.Path, "\t", request.Action, "\t", http.StatusTooManyRequests, "\t", msg)
return
Expand Down
2 changes: 1 addition & 1 deletion modules/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

package version

var Version = "extractor/v0.2.20"
var Version = "extractor/v0.2.21"

0 comments on commit 655104c

Please sign in to comment.