summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-14 14:19:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-14 14:19:48 +0100
commitd316f28ed725ff40daa8771c1aa224ac46d5b224 (patch)
treeb27bfd6ca377af3810d70793c7fa1d23d2279664
parent95c0595d66b3f8a5f0716662ba2a878600f312ea (diff)
downloadopenembedded-core-contrib-d316f28ed725ff40daa8771c1aa224ac46d5b224.tar.gz
methodpool: Improve method already seen error message
The current error message is confusing, this improves it to explain the problem and the possible ways to resolve it. [YOCTO #2530] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/methodpool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/methodpool.py b/lib/bb/methodpool.py
index 1485b1357d..c5aae9bc09 100644
--- a/lib/bb/methodpool.py
+++ b/lib/bb/methodpool.py
@@ -52,7 +52,7 @@ def insert_method(modulename, code, fn):
if name in ['None', 'False']:
continue
elif name in _parsed_fns and not _parsed_fns[name] == modulename:
- error( "Error Method already seen: %s in' %s' now in '%s'" % (name, _parsed_fns[name], modulename))
+ error("The function %s defined in %s was already declared in %s. BitBake has a global python function namespace so shared functions should be declared in a common include file rather than being duplicated, or if the functions are different, please use different function names." % (name, modulename, _parsed_fns[name]))
else:
_parsed_fns[name] = modulename