Loading genrule/genrule.go +2 −2 Original line number Diff line number Diff line Loading @@ -496,7 +496,7 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { } return paths[0], nil } else { return reportError("unknown location label %q", label) return reportError("unknown location label %q is not in srcs, out, tools or tool_files.", label) } } else if strings.HasPrefix(name, "locations ") { label := strings.TrimSpace(strings.TrimPrefix(name, "locations ")) Loading @@ -507,7 +507,7 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { } return strings.Join(paths, " "), nil } else { return reportError("unknown locations label %q", label) return reportError("unknown locations label %q is not in srcs, out, tools or tool_files.", label) } } else { return reportError("unknown variable '$(%s)'", name) Loading genrule/genrule_test.go +2 −2 Original line number Diff line number Diff line Loading @@ -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", Loading @@ -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", Loading Loading
genrule/genrule.go +2 −2 Original line number Diff line number Diff line Loading @@ -496,7 +496,7 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { } return paths[0], nil } else { return reportError("unknown location label %q", label) return reportError("unknown location label %q is not in srcs, out, tools or tool_files.", label) } } else if strings.HasPrefix(name, "locations ") { label := strings.TrimSpace(strings.TrimPrefix(name, "locations ")) Loading @@ -507,7 +507,7 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { } return strings.Join(paths, " "), nil } else { return reportError("unknown locations label %q", label) return reportError("unknown locations label %q is not in srcs, out, tools or tool_files.", label) } } else { return reportError("unknown variable '$(%s)'", name) Loading
genrule/genrule_test.go +2 −2 Original line number Diff line number Diff line Loading @@ -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", Loading @@ -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", Loading