Add missing error handler

This commit is contained in:
James Allen 2016-03-23 14:38:11 +00:00
parent c827407a99
commit bad9a0282d

View file

@ -43,6 +43,8 @@ module.exports = FileStoreHandler =
uri: "#{@_buildUrl(project_id, file_id)}#{queryString}" uri: "#{@_buildUrl(project_id, file_id)}#{queryString}"
timeout:fiveMinsInMs timeout:fiveMinsInMs
readStream = request(opts) readStream = request(opts)
readStream.on "error", (err) ->
logger.err {err, project_id, file_id, query}, "error in file stream"
callback(null, readStream) callback(null, readStream)
deleteFile: (project_id, file_id, callback)-> deleteFile: (project_id, file_id, callback)->