Skip to content

Commit

Permalink
Show a message to the user in the event that we were unable to perfor…
Browse files Browse the repository at this point in the history
…m the operation.
  • Loading branch information
Adam Coddington committed Jan 20, 2015
1 parent 765b907 commit 4b0184b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bugwarrior/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def _bool_option(section, option, default):
try:
tw.task_add(**issue)
except TaskwarriorError as e:
log.name('db').error("Unable to add task: %s" % e.stderr)
log.name('db').trace(e)

log.name('db').info("Updating {0} tasks", len(issue_updates['changed']))
Expand All @@ -409,6 +410,7 @@ def _bool_option(section, option, default):
try:
tw.task_update(issue)
except TaskwarriorError as e:
log.name('db').error("Unable to modify task: %s" % e.stderr)
log.name('db').trace(e)

log.name('db').info("Closing {0} tasks", len(issue_updates['closed']))
Expand All @@ -429,6 +431,7 @@ def _bool_option(section, option, default):
try:
tw.task_done(uuid=issue)
except TaskwarriorError as e:
log.name('db').error("Unable to close task: %s" % e.stderr)
log.name('db').trace(e)

# Send notifications
Expand Down

0 comments on commit 4b0184b

Please sign in to comment.