diff mbox series

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

Message ID 20230328203846.2604638-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 935ab36f64d25c09f83209cd369714c2bc89aa7f
Headers show
Series fetch2/local: Mention the value of localpath in failure message | expand

Commit Message

Richard Purdie March 28, 2023, 8:38 p.m. UTC
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/fetch2/local.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/fetch2/local.py b/lib/bb/fetch2/local.py
index 0bb987c644..5332faafe2 100644
--- a/lib/bb/fetch2/local.py
+++ b/lib/bb/fetch2/local.py
@@ -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