Skip to contentSkip to conversation

bitbake/fetch2: specify recipe name when reporting SRCREV error

PATCH New Ross Burton 1 participant 1 message Jan 27, 2015

lore
Share & tools
lore
#0 lore raw

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.

---
 bitbake/lib/bb/fetch2/__init__.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/fetch2/__init__.py +1 -1
index 599ea8c..a24337c 100644
@@ -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