Commit 625d3fb4 authored by yann300's avatar yann300 Committed by ioedeveloper

always return null for the file if not found

parent b51c0ad2
......@@ -96,10 +96,10 @@ module.exports = class RemixDProvider {
if (file.readonly) { this._readOnlyFiles[path] = 1 }
cb(null, file.content)
}).catch((error) => {
if (error) console.log(error)
// display the last known content.
// TODO should perhaps better warn the user that the file is not synced.
if (this.filesContent[path]) return cb(null, this.filesContent[path])
else cb(error)
return cb(null, this.filesContent[path])
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment