From 7cc8ebfacfae05b22ffe80974d3dd3edf122406e Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Sat, 28 Jul 2018 15:26:11 -0700 Subject: [PATCH] hcl: diagnosticTextWriter fix value reporting for 1-element collection --- hcl/diagnostic_text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl/diagnostic_text.go b/hcl/diagnostic_text.go index e93cc13..9e47e9f 100644 --- a/hcl/diagnostic_text.go +++ b/hcl/diagnostic_text.go @@ -270,7 +270,7 @@ func (w *diagnosticTextWriter) valueStr(val cty.Value) string { case 0: return "empty " + ty.FriendlyName() case 1: - return ty.FriendlyName() + "with 1 element" + return ty.FriendlyName() + " with 1 element" default: return fmt.Sprintf("%s with %d elements", ty.FriendlyName(), l) }