Print the download message.

This commit is contained in:
Yuxin Wang 2018-09-27 09:05:18 -04:00
parent 606f1ac98d
commit e7016c9a98

View file

@ -78,7 +78,8 @@ class PeerTerminal(cmd.Cmd):
if current == total:
print('Downloading {} ['.format(filename) + 30 * '=' + '>] 100%')
self._peer.download(filename, destionation, progress)
_, message = self._peer.download(filename, destionation, progress)
print(message)
def do_exit(self, arg):
self._peer.exit()