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:
parent
0c07ff91b0
commit
e3ac7630eb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user