Fix bug in error reporting when adding duplicate properties

Bug: 150451422
Bug: 153306490
Test: m nothing
Merged-In: Ia557992d71537aca0757866e9114b30bdf52bb6b
Change-Id: Ia557992d71537aca0757866e9114b30bdf52bb6b
This commit is contained in:
Paul Duffin
2020-03-02 16:29:11 +00:00
parent bdd47a863a
commit 290334dd7d

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