From bd4b91bbbd1a6dfd865506de92e5a7766b3ab140 Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 15 Mar 2022 20:51:59 -0400 Subject: [PATCH] fix: Display "" instead of "host" in errors (#262) --- core/endpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/endpoint.go b/core/endpoint.go index 9a7c67d5..acaed8ec 100644 --- a/core/endpoint.go +++ b/core/endpoint.go @@ -198,7 +198,7 @@ func (endpoint *Endpoint) EvaluateHealth() *Result { // Clean up parameters that we don't need to keep in the results if endpoint.UIConfig.HideHostname { for errIdx, errorString := range result.Errors { - result.Errors[errIdx] = strings.ReplaceAll(errorString, result.Hostname, "host") + result.Errors[errIdx] = strings.ReplaceAll(errorString, result.Hostname, "") } result.Hostname = "" }