Update compileopts/target.go

Co-authored-by: Ayke <aykevanlaethem@gmail.com>
This commit is contained in:
sago35
2022-09-01 21:30:40 +09:00
committed by Ron Evans
parent c579e7e509
commit fd05254683
+1 -1
View File
@@ -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)
}
}
}