Add in missed error catching

This commit is contained in:
James Allen 2014-11-19 12:51:19 +00:00
parent c137e05bfd
commit c822bb6ea4

View file

@ -81,6 +81,7 @@ module.exports = RedisManager =
multi.lrange keys.pendingUpdates(doc_id:doc_id), 0 , -1
multi.del keys.pendingUpdates(doc_id:doc_id)
multi.exec (error, replys) ->
return callback(error) if error?
jsonUpdates = replys[0]
updates = []
for jsonUpdate in jsonUpdates