Better error message for 'File %r has no mapping in %s'

This commit is contained in:
Thomas Nagy 2016-09-15 22:00:26 +02:00
parent 5e97146809
commit 410d1568d5
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 2 additions and 1 deletions

View File

@ -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):
"""