Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42a3c9ff authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Improve the error when srcs field has the wrong type." am: 309a1acb...

Merge "Improve the error when srcs field has the wrong type." am: 309a1acb am: 9b08c602 am: 613d4cef am: 9b44c498 am: 9fca4517

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1822025

Change-Id: I417511fbecff51e7d9b8608158ba357bcdd4aab9
parents 6d826263 9fca4517
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -240,7 +240,7 @@ func InitSingleSourcePrebuiltModule(module PrebuiltInterface, srcProps interface
			value = value.Elem()
		}
		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()
		if src == "" {