Don't attempt to use source maps w/ no cache directory

This error will only happen when the compile-cache file is compiled
twice, which seems to be happening on windows when running specs.
This doesn't fix that problem, but prevents further errors from
cascading in a confusing way.
This commit is contained in:
Max Brunsfeld
2015-09-01 16:32:50 -07:00
parent a0f5a6612c
commit d9410716d2

View File

@@ -108,7 +108,7 @@ require('source-map-support').install({
// source-map-support module, but we've overridden it to read the javascript
// code from our cache directory.
retrieveSourceMap: function (filePath) {
if (!fs.isFileSync(filePath)) {
if (!cacheDirectory || !fs.isFileSync(filePath)) {
return null
}