Merge "Improve the error when srcs field has the wrong type." am: 309a1acb27
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1822025 Change-Id: I3b34c8520bd0aa6da3fedfcaba458989b1cd9f0e
This commit is contained in:
@@ -240,7 +240,7 @@ func InitSingleSourcePrebuiltModule(module PrebuiltInterface, srcProps interface
|
|||||||
value = value.Elem()
|
value = value.Elem()
|
||||||
}
|
}
|
||||||
if value.Kind() != reflect.String {
|
if value.Kind() != reflect.String {
|
||||||
panic(fmt.Errorf("prebuilt src field %q should be a string or a pointer to one but was %d %q", srcPropertyName, value.Kind(), value))
|
panic(fmt.Errorf("prebuilt src field %q in %T in module %s should be a string or a pointer to one but was %v", srcField, srcProps, module, value))
|
||||||
}
|
}
|
||||||
src := value.String()
|
src := value.String()
|
||||||
if src == "" {
|
if src == "" {
|
||||||
|
Reference in New Issue
Block a user