From 710652523fa4d8e63748a40f8be0eb0f26df584a Mon Sep 17 00:00:00 2001 From: Matthew Wang Date: Sat, 26 Dec 2015 12:32:27 +0800 Subject: [PATCH] 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 --- install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.py b/install.py index ad6cb2c6..e5063e2f 100755 --- a/install.py +++ b/install.py @@ -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 = (