Fixed error handling.

This commit is contained in:
Martin Edenhofer 2014-02-09 03:45:39 +01:00
parent d6564fec71
commit 240815dc0e

View file

@ -341,8 +341,8 @@ class _taskManagerSingleton extends App.Controller
success: -> success: ->
if ui.tasksToUpdate[ @key ] is 'inProgress' if ui.tasksToUpdate[ @key ] is 'inProgress'
delete ui.tasksToUpdate[ @key ] delete ui.tasksToUpdate[ @key ]
error: (task) => error: ->
ui.log 'error', "can't update task '#{task.id}'" ui.log 'error', "can't update task", @
if ui.tasksToUpdate[ @key ] is 'inProgress' if ui.tasksToUpdate[ @key ] is 'inProgress'
delete ui.tasksToUpdate[ @key ] delete ui.tasksToUpdate[ @key ]
) )