mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
log errors when copying files from cache
This commit is contained in:
parent
134058ccc0
commit
56b77c300c
1 changed files with 2 additions and 0 deletions
|
@ -62,6 +62,8 @@ module.exports = UrlCache =
|
|||
|
||||
_copyFile: (from, to, _callback = (error) ->) ->
|
||||
callbackOnce = (error) ->
|
||||
if error?
|
||||
logger.error err: error, from:from, to:to, "error copying file from cache"
|
||||
_callback(error)
|
||||
_callback = () ->
|
||||
writeStream = fs.createWriteStream(to)
|
||||
|
|
Loading…
Reference in a new issue