From 109c2add59ea2bcbfd0ae7f6ba95bb3db8223ca5 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 2 Mar 2020 16:29:11 +0000 Subject: [PATCH] Fix bug in error reporting when adding duplicate properties Bug: 150451422 Test: m nothing Change-Id: Ia557992d71537aca0757866e9114b30bdf52bb6b --- sdk/bp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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