aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/build.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-01-13 17:01:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-15 10:04:51 +0000
commit86811bd85e2e453ee92a05fe60160d9b49ac69e8 (patch)
tree5907e0de33292cf207054f07d0667a976a69db81 /lib/bb/build.py
parentd242d6ca81dd83b2b13a3ac77ac4cd829a69cf83 (diff)
downloadbitbake-86811bd85e2e453ee92a05fe60160d9b49ac69e8.tar.gz
bitbake/fetch2: improve error formatting for fetcher errors
* The "name" argument to FuncFailed is rarely used as a name in actual usage within bitbake, so don't treat it as one in the output. * Don't print URL for FetchError if it was not specified (i.e. don't output "Fetcher failure for URL 'None'") * Don't include URL in "unable to fetch from any source" message since we supply it to FetchError and it will be printed anyway. * Don't include URL in "checksum failed" message for the same reason Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/build.py')
-rw-r--r--lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index a9ce14fe7..39f075d41 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -53,7 +53,7 @@ class FuncFailed(Exception):
self.logfile = logfile
self.name = name
if name:
- self.msg = "Function '%s' failed" % name
+ self.msg = 'Function failed: %s' % name
else:
self.msg = "Function failed"