summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-03-02 16:29:11 +0000
committer Paul Duffin <paulduffin@google.com> 2020-03-02 16:29:11 +0000
commit109c2add59ea2bcbfd0ae7f6ba95bb3db8223ca5 (patch)
tree4467aca789ca86b9e533dc489e1d9eb5da7d9b10
parent323a4c3ab34a6af4db7d0d99d22d64284b1570dc (diff)
Fix bug in error reporting when adding duplicate properties
Bug: 150451422 Test: m nothing Change-Id: Ia557992d71537aca0757866e9114b30bdf52bb6b
-rw-r--r--sdk/bp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdk/bp.go b/sdk/bp.go
index c2a75e47b..68fe7ab4e 100644
--- a/sdk/bp.go
+++ b/sdk/bp.go
@@ -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