Merge "Fix bug in error reporting when adding duplicate properties"
This commit is contained in:
commit
193d3b8e86
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue