mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
skip cache directory error when empty
This commit is contained in:
parent
52baf4976e
commit
c26de9554d
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ module.exports = OutputCacheManager =
|
|||
# look in compileDir for build dirs and delete if > N or age of mod time > T
|
||||
fs.readdir cacheRoot, (err, results) ->
|
||||
if err?
|
||||
return callback(null) if err.code == 'ENOENT' # cache directory is empty
|
||||
logger.error err: err, project_id: cacheRoot, "error clearing cache"
|
||||
return callback(err)
|
||||
|
||||
|
|
Loading…
Reference in a new issue