From 12ef1cfd9d3c87d371caf3bc3231e2ae42de0a05 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 12 Oct 2016 17:45:13 +0100 Subject: [PATCH] Check return code because sometimes babel can just be completely broken --- babelcheck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babelcheck.js b/babelcheck.js index 75579b1d3d..ab4077d325 100644 --- a/babelcheck.js +++ b/babelcheck.js @@ -7,7 +7,7 @@ var exec = require('child_process').exec; // 5. 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"+ '*****************************************\n'+ '* matrix-react-sdk has moved to babel 6 *\n'+