diff --git a/src/pkg/exp/template/exec.go b/src/pkg/exp/template/exec.go index 1857e403ff7..87219e5e6c2 100644 --- a/src/pkg/exp/template/exec.go +++ b/src/pkg/exp/template/exec.go @@ -255,7 +255,7 @@ func (s *state) evalField(data reflect.Value, fieldName string) reflect.Value { if field.IsValid() && isExported(fieldName) { // valid and exported return field } - s.errorf("%s has no field %s", data.Type(), fieldName) + s.errorf("%s has no exported field %q", data.Type(), fieldName) default: s.errorf("can't evaluate field %s of type %s", fieldName, data.Type()) }