From 7d2e4b77ec8155449f5fbd6f64e256beec99d324 Mon Sep 17 00:00:00 2001
From: Pierre Souchay
Date: Tue, 10 Jul 2018 16:52:08 +0200
Subject: [PATCH] Use %q, not %s as it used to
---
agent/config/builder.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/agent/config/builder.go b/agent/config/builder.go
index 63d5dbe8dd..e7958056e1 100644
--- a/agent/config/builder.go
+++ b/agent/config/builder.go
@@ -1198,7 +1198,7 @@ func (b *Builder) expandAddrs(name string, s *string) []net.Addr {
x, err := template.Parse(*s)
if err != nil {
- b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %s: %s", name, *s, err))
+ b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err))
return nil
}
@@ -1237,7 +1237,7 @@ func (b *Builder) expandOptionalAddrs(name string, s *string) []string {
x, err := template.Parse(*s)
if err != nil {
- b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %s: %s", name, *s, err))
+ b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err))
return nil
}