From fd052546831db2851c332a1c1c2a0a9d7042dc0f Mon Sep 17 00:00:00 2001 From: sago35 Date: Thu, 1 Sep 2022 21:30:40 +0900 Subject: [PATCH] Update compileopts/target.go Co-authored-by: Ayke --- compileopts/target.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compileopts/target.go b/compileopts/target.go index f36561f9..865b8afe 100644 --- a/compileopts/target.go +++ b/compileopts/target.go @@ -95,7 +95,7 @@ func (spec *TargetSpec) overrideProperties(child *TargetSpec) error { for j := i + 1; j < dst.Len(); j++ { w := dst.Index(j).String() if v == w { - return fmt.Errorf("duplicate value '" + v + "' in field : " + field.Name) + return fmt.Errorf("duplicate value '%s' in field %s", v, field.Name) } } }