Don't show errors as status change in history viewer. Fixes #2881

This commit is contained in:
Yann Leboulanger 2009-08-30 23:20:13 +02:00
parent 23dbb00d2d
commit 893e6bcfd6
1 changed files with 6 additions and 1 deletions

View File

@ -430,7 +430,12 @@ class HistoryWindow:
tag_msg = 'status'
else: # 'status'
# message here (if not None) is status message
if show is None: # it means error
if message:
message = _('Error: %s') % message
else:
message = _('Error')
elif message:
message = _('Status is now: %(status)s: %(status_msg)s') % \
{'status': helpers.get_uf_show(show), 'status_msg': message}
else: