Clarify genrule error message
Point the user toward checking their $(location) label is mentioned elsewhere in the build rule (as opposed to a typo of the module name, for example). Test: genrule_test.go Change-Id: Icc19740938e2b56eef24540534f9cc5bfa9420b8
This commit is contained in:
@@ -341,7 +341,7 @@ func TestGenruleCmd(t *testing.T) {
|
||||
out: ["out"],
|
||||
cmd: "echo foo > $(location missing)",
|
||||
`,
|
||||
err: `unknown location label "missing"`,
|
||||
err: `unknown location label "missing" is not in srcs, out, tools or tool_files.`,
|
||||
},
|
||||
{
|
||||
name: "error locations",
|
||||
@@ -349,7 +349,7 @@ func TestGenruleCmd(t *testing.T) {
|
||||
out: ["out"],
|
||||
cmd: "echo foo > $(locations missing)",
|
||||
`,
|
||||
err: `unknown locations label "missing"`,
|
||||
err: `unknown locations label "missing" is not in srcs, out, tools or tool_files`,
|
||||
},
|
||||
{
|
||||
name: "error location no files",
|
||||
|
Reference in New Issue
Block a user