Skip to content

Commit

Permalink
check for toolchain install, report error to browser if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Marinacci committed Jun 23, 2014
1 parent fe968b4 commit 09db69d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions compile.js
Expand Up @@ -244,6 +244,8 @@ exports.compile = function(sketchPath, outdir,options, publish, sketchDir, final
//console.log(args.join(' '));
publish({type:"compile", message:args.join(" ")});
}

checkfile(options.platform.getCompilerBinaryPath());

debug("compiling ",sketchPath,"to dir",outdir);
debug("root sketch dir = ",sketchDir);
Expand Down
3 changes: 2 additions & 1 deletion electron.js
Expand Up @@ -104,7 +104,8 @@ app.post('/compile',function(req,res) {
} catch(e) {
console.log("compilation error",e);
console.log(e.output);
res.send(JSON.stringify({status:'error',output:e.output}));
res.send(JSON.stringify({status:'error',output:e.output, message: e.toString()}));
publishEvent({ type:'error', message: e.toString(), output: e.output});
res.end();
}
});
Expand Down

0 comments on commit 09db69d

Please sign in to comment.