Skip to content

Commit 655104c

Browse files
author
Boris
committed
Исправил ответ при ошибке
1 parent 992bcb5 commit 655104c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/router/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ func (rt *Router) ApiHandler(w http.ResponseWriter, r *http.Request) {
509509

510510
// Если в кластере есть недовосстановленные индексы - прерываем
511511
if ch_status.InitializingShards > 5 || ch_status.UnassignedShards > 5 {
512-
msg := `{"message":"Indices will not be restored at now. Please wait", "error":1}`
512+
msg := `{"error":"Indices will not be restored at now. Please wait"}`
513513
http.Error(w, msg, http.StatusTooManyRequests)
514514
log.Println(remoteIP, "\t", r.Method, "\t", r.URL.Path, "\t", request.Action, "\t", http.StatusTooManyRequests, "\t", msg)
515515
return

modules/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
package version
1515

16-
var Version = "extractor/v0.2.20"
16+
var Version = "extractor/v0.2.21"

0 commit comments

Comments
 (0)