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: ->
if ui.tasksToUpdate[ @key ] is 'inProgress'
delete ui.tasksToUpdate[ @key ]
error: (task) =>
ui.log 'error', "can't update task '#{task.id}'"
error: ->
ui.log 'error', "can't update task", @
if ui.tasksToUpdate[ @key ] is 'inProgress'
delete ui.tasksToUpdate[ @key ]
)