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

Clearer error message when folders do not exist - Issue 1643

This commit is contained in:
Thomas Nagy 2015-10-21 01:08:14 +02:00
parent 0c07ff91b0
commit e3ac7630eb
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -307,6 +307,10 @@ class Context(ctx):
elif not node:
if not mandatory:
continue
try:
os.listdir(d)
except OSError:
raise Errors.WafError('Cannot read the folder %r' % d)
raise Errors.WafError('No wscript file in directory %s' % d)
def exec_command(self, cmd, **kw):