Commit f79e9616 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

[omemo] Set transfer error correctly

parent 67cb96d5
...@@ -124,7 +124,8 @@ class FileDecryption: ...@@ -124,7 +124,8 @@ class FileDecryption:
if message.status_code != Soup.Status.OK: if message.status_code != Soup.Status.OK:
log.warning('Download failed: %s', transfer.request_uri) log.warning('Download failed: %s', transfer.request_uri)
log.warning(Soup.Status.get_phrase(message.status_code)) log.warning(Soup.Status.get_phrase(message.status_code))
transfer.set_error('http-error', 'Download failed: %s', transfer.request_uri) error_text = _('Download failed: %s') % transfer.request_uri
transfer.set_error('http-error', error_text)
return return
data = message.props.response_body_data.get_data() data = message.props.response_body_data.get_data()
Supports Markdown
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