mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Check return code
because sometimes babel can just be completely broken
This commit is contained in:
parent
5801bf60aa
commit
d29e19b1a0
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ var exec = require('child_process').exec;
|
||||||
// 5.
|
// 5.
|
||||||
|
|
||||||
exec("babel -V", function (error, stdout, stderr) {
|
exec("babel -V", function (error, stdout, stderr) {
|
||||||
if (parseInt(stdout.substr(0,1), 10) < 6) {
|
if ((error && error.code) || parseInt(stdout.substr(0,1), 10) < 6) {
|
||||||
console.log("\033[31m\033[1m"+
|
console.log("\033[31m\033[1m"+
|
||||||
'*****************************************\n'+
|
'*****************************************\n'+
|
||||||
'* matrix-react-sdk has moved to babel 6 *\n'+
|
'* matrix-react-sdk has moved to babel 6 *\n'+
|
||||||
|
|
Loading…
Reference in a new issue