log errors when copying files from cache

This commit is contained in:
Brian Gough 2015-04-29 15:54:08 +01:00
parent 134058ccc0
commit 56b77c300c

View file

@ -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)