Commit a7af2daf authored by Philipp Hörist's avatar Philipp Hörist

HTTPUpload: Display errors correctly

parent a290db02
......@@ -110,7 +110,7 @@ def make_transfer(self, path, encryption, contact, groupchat=False):
'maximum allowed file size is: %s') % size
if invalid_file:
raise FileError('file-error', msg)
raise FileError(msg)
mime = mimetypes.MimeTypes().guess_type(path)[0]
if not mime:
......
......@@ -59,7 +59,9 @@ def __init__(self, transfer):
def _on_transfer_state_change(self, transfer, _signal_name, state):
if state.is_error:
ErrorDialog(_('Upload Failed'), transfer.error_text)
ErrorDialog(_('Upload Failed'),
transfer.error_text,
transient_for=app.interface.roster.window)
self.destroy()
if state.is_finished or state.is_cancelled:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment