From 907be00fdc4445077ea6d5a3e35b78251efd9ec0 Mon Sep 17 00:00:00 2001 From: Jamie Chard Date: Thu, 12 Nov 2015 15:56:29 +1100 Subject: [PATCH] Make checkThatExecutableExists backwards compatible --- lib/exe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/exe.js b/lib/exe.js index b2114d5..11cdd83 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -248,8 +248,8 @@ exports.compile = function (options, complete) { */ function checkThatExecutableExists (next) { - fs.access(nodeCompiler.releasePath, function (err) { - if (err) { + fs.exists(nodeCompiler.releasePath, function (exists) { + if (!exists) { _log("error", "The release executable has not been generated. " + "This indicates a failure in the build process. " +