bitbake/fetch2: specify recipe name when reporting SRCREV error
PATCH 1/1 bitbake/fetch2: specify recipe name when reporting SRCREV error
The "SRCREV was used but no SCM found" error isn't that helpful when it doesn't indicate *what* recipe does this, so add the filename to the message.
Signed-off-by Ross Burton <[email protected]>
--- bitbake/lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/fetch2/__init__.py +1 -1
@@ -637,7 +637,7 @@ def get_srcrev(d): scms.append(u) if len(scms) == 0: - raise FetchError("SRCREV was used yet no valid SCM was found in SRC_URI") + raise FetchError("SRCREV was used yet no valid SCM was found in SRC_URI in %s" % d.getVar("FILE")) if len(scms) == 1 and len(urldata[scms[0]].names) == 1: autoinc, rev = urldata[scms[0]].method.sortable_revision(urldata[scms[0]], d, urldata[scms[0]].names[0])
Signature · 1 line
1.7.10.4