Fixed error handling.
This commit is contained in:
parent
d6564fec71
commit
240815dc0e
1 changed files with 2 additions and 2 deletions
|
@ -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 ]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue