Merge "Fix bug in error reporting when adding duplicate properties"

This commit is contained in:
Treehugger Robot 2020-03-03 01:50:12 +00:00 committed by Gerrit Code Review
commit 193d3b8e86
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (s *bpPropertySet) init() {
func (s *bpPropertySet) AddProperty(name string, value interface{}) {
if s.properties[name] != nil {
panic("Property %q already exists in property set")
panic(fmt.Sprintf("Property %q already exists in property set", name))
}
s.properties[name] = value