Improve error message about version mismatch (#1902)

This commit is contained in:
Jan Niklas Hasse 2017-01-30 23:23:15 +01:00 committed by ita1024
parent e82884e404
commit 86e77ef5c3
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ class BuildContext(Context.Context):
pass
else:
if env.version < Context.HEXVERSION:
raise Errors.WafError('Version mismatch! reconfigure the project')
raise Errors.WafError('Project was configured with a different version of Waf.\n'
'Please reconfigure it (this will discard old build information).')
for t in env.tools:
self.setup(**t)