diff options
author | Matt Godbolt <matt@godbolt.org> | 2017-07-26 14:57:28 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2017-07-26 14:57:28 -0500 |
commit | df917cc7cafcaa4ff031767c718d64ffbaa14ff8 (patch) | |
tree | 3af6663ae032b022ac4d4ea0742d1847ba52e5fc /lib/compile-handler.js | |
parent | 6ae7d04c4d620b883b68d4bad81708201361a697 (diff) | |
download | compiler-explorer-df917cc7cafcaa4ff031767c718d64ffbaa14ff8.tar.gz compiler-explorer-df917cc7cafcaa4ff031767c718d64ffbaa14ff8.zip |
Handle missing binaries
Diffstat (limited to 'lib/compile-handler.js')
-rw-r--r-- | lib/compile-handler.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |