Show actual error in status from storage_moved_failed_alert

This commit is contained in:
Calum Lind 2014-07-16 18:07:12 +01:00
parent 62cca045be
commit 8685c7a604
1 changed files with 2 additions and 1 deletions

View File

@ -1083,8 +1083,9 @@ class TorrentManager(component.Component):
except (RuntimeError, KeyError):
return
# Set an Error message and pause the torrent
alert_msg = decode_string(alert.message()).split(':', 1)[1].strip()
torrent.set_status_message("Error: Moving storage failed, %s" % alert_msg)
torrent.moving_storage = False
torrent.set_status_message("Error: moving storage location failed")
torrent.pause()
torrent.update_state()