mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user