mirror of https://gitlab.com/ita1024/waf.git
Better error message for 'File %r has no mapping in %s'
This commit is contained in:
parent
5e97146809
commit
410d1568d5
|
@ -247,7 +247,8 @@ class task_gen(object):
|
|||
# regexps objects
|
||||
if k.match(name):
|
||||
return self.mappings[k]
|
||||
raise Errors.WafError("File %r has no mapping in %r (have you forgotten to load a waf tool?)" % (node, self.mappings.keys()))
|
||||
keys = list(self.mappings.keys())
|
||||
raise Errors.WafError("File %r has no mapping in %r (load a waf tool?)" % (node, keys))
|
||||
|
||||
def create_task(self, name, src=None, tgt=None, **kw):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue