mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fix decaf error in FSPersistorManager
This commit is contained in:
parent
0b6e725137
commit
e06c03e536
1 changed files with 5 additions and 5 deletions
|
@ -82,12 +82,12 @@ module.exports = {
|
|||
{ err, location, filteredName: name },
|
||||
'Error reading from file'
|
||||
)
|
||||
}
|
||||
if (err.code === 'ENOENT') {
|
||||
return callback(new Errors.NotFoundError(err.message), null)
|
||||
} else {
|
||||
return callback(err, null)
|
||||
}
|
||||
}
|
||||
opts.fd = fd
|
||||
const sourceStream = fs.createReadStream(null, opts)
|
||||
return callback(null, sourceStream)
|
||||
|
|
Loading…
Reference in a new issue