2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 01:46:15 +01:00

Improve error messages from scanner errors #2356

This commit is contained in:
Thomas Nagy 2021-06-12 08:12:33 +02:00
parent 55d57d0b58
commit 95c2bc0702

View File

@ -635,7 +635,7 @@ def process_rule(self):
for x in self.generator.to_list(getattr(self.generator, 'deps', None)):
node = self.generator.path.find_resource(x)
if not node:
self.generator.bld.fatal('Could not find %r (was it declared?)' % x)
self.generator.bld.fatal('Could not find %r in %r (was it declared?)' % (x, self.generator))
nodes.append(node)
return [nodes, []]
cls.scan = scan