From 0bb84bf76bbe6b34f7c7a81f06e2cdc80f68890d Mon Sep 17 00:00:00 2001 From: Derek Collison Date: Thu, 17 Mar 2022 14:59:14 -0700 Subject: [PATCH] Make warning more detailed Co-authored-by: Waldemar Quevedo --- server/opts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/opts.go b/server/opts.go index a6d9d857..e5e4289d 100644 --- a/server/opts.go +++ b/server/opts.go @@ -1502,7 +1502,7 @@ func parseURLs(a []interface{}, typ string, warnings *[]error) (urls []*url.URL, field: sURL, configErr: configErr{ token: tk, - reason: "Duplicate entry detected", + reason: fmt.Sprintf("Duplicate %s entry detected", typ), }, } *warnings = append(*warnings, err)