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: ->
|
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 ]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue