Commit 8d508965 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2334 from arencambre/master

Resolving error text issue (#2302)
parents 675d32ff 84f1ba0d
In MSVC module, refine text in error message.
...@@ -338,7 +338,7 @@ def _augment_exception(exc, version, arch=''): ...@@ -338,7 +338,7 @@ def _augment_exception(exc, version, arch=''):
if "vcvarsall" in message.lower() or "visual c" in message.lower(): if "vcvarsall" in message.lower() or "visual c" in message.lower():
# Special error message if MSVC++ not installed # Special error message if MSVC++ not installed
tmpl = 'Microsoft Visual C++ {version:0.1f} is required.' tmpl = 'Microsoft Visual C++ {version:0.1f} or greater is required.'
message = tmpl.format(**locals()) message = tmpl.format(**locals())
msdownload = 'www.microsoft.com/download/details.aspx?id=%d' msdownload = 'www.microsoft.com/download/details.aspx?id=%d'
if version == 9.0: if version == 9.0:
...@@ -358,8 +358,9 @@ def _augment_exception(exc, version, arch=''): ...@@ -358,8 +358,9 @@ def _augment_exception(exc, version, arch=''):
message += msdownload % 8279 message += msdownload % 8279
elif version >= 14.0: elif version >= 14.0:
# For VC++ 14.X Redirect user to latest Visual C++ Build Tools # For VC++ 14.X Redirect user to latest Visual C++ Build Tools
message += (' Get it with "Build Tools for Visual Studio": ' message += (' Get it with "Microsoft C++ Build Tools": '
r'https://visualstudio.microsoft.com/downloads/') r'https://visualstudio.microsoft.com'
r'/visual-cpp-build-tools/')
exc.args = (message, ) exc.args = (message, )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment