Improve error message when a required makefile can't be found

Bug: 193566316
Test: go test
Change-Id: I41a28808c95df76f212980ef1e59047312fe587b
This commit is contained in:
Cole Faust
2021-12-21 16:11:16 -08:00
parent f7ed5343de
commit 7321b0985e
2 changed files with 7 additions and 5 deletions

View File

@@ -110,7 +110,9 @@ func (i inheritedDynamicModule) emitSelect(gctx *generationContext) {
gctx.writef("if not %s:", i.entryName())
gctx.indentLevel++
gctx.newLine()
gctx.write(`rblf.mkerror("cannot")`)
gctx.write(`rblf.mkerror("`, gctx.starScript.mkFile, `", "Cannot find %s" % (`)
i.path.emit(gctx)
gctx.write("))")
gctx.indentLevel--
}
}