aboutsummaryrefslogtreecommitdiffstats
path: root/common/arch.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/arch.go')
-rw-r--r--common/arch.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/arch.go b/common/arch.go
index ee1cfae6..0e9c7fe0 100644
--- a/common/arch.go
+++ b/common/arch.go
@@ -557,12 +557,14 @@ func InitArchModule(m AndroidModule,
for _, properties := range base.generalProperties {
propertiesValue := reflect.ValueOf(properties)
if propertiesValue.Kind() != reflect.Ptr {
- panic("properties must be a pointer to a struct")
+ panic(fmt.Errorf("properties must be a pointer to a struct, got %T",
+ propertiesValue.Interface()))
}
propertiesValue = propertiesValue.Elem()
if propertiesValue.Kind() != reflect.Struct {
- panic("properties must be a pointer to a struct")
+ panic(fmt.Errorf("properties must be a pointer to a struct, got %T",
+ propertiesValue.Interface()))
}
archProperties := &archProperties{}