Skip to contentSkip to conversation

fetch2/local: Mention the value of localpath in failure message

PATCH New Richard Purdie 1 participant 1 message Mar 28, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2/local: Mention the value of localpath in failure message

We have an obtuse rare and intermittent bitbake fetch failure. Understanding the value of ud.localpath at the time of failure would be helpful to debug it further. Tweak the debugging to provide this in the output.

---
 lib/bb/fetch2/local.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/local.py +1 -1
index 0bb987c644..5332faafe2 100644
@@ -72,7 +72,7 @@ class Local(FetchMethod):
             filespath = d.getVar('FILESPATH')
             if filespath:
                 locations = filespath.split(":")
-            msg = "Unable to find file " + urldata.url + " anywhere. The paths that were searched were:\n    " + "\n    ".join(locations)
+            msg = "Unable to find file " + urldata.url + " anywhere to download to " + urldata.localpath + ". The paths that were searched were:\n    " + "\n    ".join(locations)
             raise FetchError(msg)
 
         return True
Signature · 1 line
2.38.1