Use check_call to capture error from build process

Without this install.py always exits 0 and no way to tell vim-plug
its installation actually failed
This commit is contained in:
Matthew Wang 2015-12-26 12:32:27 +08:00
parent 414f482b1c
commit 710652523f

View File

@ -18,7 +18,7 @@ def Main():
'to run:\n\tgit submodule update --init --recursive\n\n' )
python_binary = sys.executable
subprocess.call( [ python_binary, build_file ] + sys.argv[1:] )
subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
# Remove old YCM libs if present so that YCM can start.
old_libs = (