From df917cc7cafcaa4ff031767c718d64ffbaa14ff8 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Wed, 26 Jul 2017 14:57:28 -0500 Subject: [PATCH] Handle missing binaries --- lib/compile-handler.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/compile-handler.js b/lib/compile-handler.js index b3ca0b86e..4e342d6b2 100644 --- a/lib/compile-handler.js +++ b/lib/compile-handler.js @@ -78,7 +78,11 @@ function CompileHandler(gccProps, compilerProps) { compiler.mtime = res.mtime; return compiler; }); - }, this)); + }, this)) + .catch(function(err) { + logger.warn("Unable to stat compiler binary", err); + return null; + }); }; this.setCompilers = function (compilers) {