Fix bug in error reporting when adding duplicate properties
Bug: 150451422 Test: m nothing Change-Id: Ia557992d71537aca0757866e9114b30bdf52bb6b
This commit is contained in:
parent
323a4c3ab3
commit
109c2add59
|
@ -35,7 +35,7 @@ func (s *bpPropertySet) init() {
|
||||||
|
|
||||||
func (s *bpPropertySet) AddProperty(name string, value interface{}) {
|
func (s *bpPropertySet) AddProperty(name string, value interface{}) {
|
||||||
if s.properties[name] != nil {
|
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
|
s.properties[name] = value
|
||||||
|
|
Loading…
Reference in New Issue