Skip to content

Commit 423f7fa

Browse files
committed
Build: Handle npm install errors
1 parent 16c6925 commit 423f7fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

itools/pkg/build_gulp.py

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ def launch_npm_install(self):
6565
path = str(Path(path)[:-1]) + '/'
6666
p = Popen(['npm', 'install'], cwd=path)
6767
p.wait()
68+
if p.returncode == 1:
69+
print '***'*25
70+
print '*** Error running npm install ', path
71+
print '***'*25
72+
sys.exit(1)
6873
done = True
6974
return done
7075

0 commit comments

Comments
 (0)