diff --git a/agent/config/builder.go b/agent/config/builder.go index b3fdb6474..e7958056e 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 %q: %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 %q: %s", name, s, err)) + b.err = multierror.Append(b.err, fmt.Errorf("%s: error parsing %q: %s", name, *s, err)) return nil } diff --git a/testutil/server.go b/testutil/server.go index 8bbeca0e4..32d458a7f 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -314,7 +314,7 @@ type failer struct { failed bool } -func (f *failer) Log(args ...interface{}) { fmt.Println(args) } +func (f *failer) Log(args ...interface{}) { fmt.Println(args...) } func (f *failer) FailNow() { f.failed = true } // waitForAPI waits for only the agent HTTP endpoint to start