diff --git a/securedrop_client/logic.py b/securedrop_client/logic.py index d663da51c5..696b3df53c 100644 --- a/securedrop_client/logic.py +++ b/securedrop_client/logic.py @@ -605,8 +605,8 @@ def on_file_downloaded(self, result, current_object): except CryptoError as e: logger.debug('Failed to decrypt file {}: {}'.format(server_filename, e)) storage.set_object_decryption_status(file_uuid, self.session, db.File, False) - self.set_status("Failed to download and decrypt file, " - "please try again.") + self.set_status("Failed to decrypt file, " + "please try again or talk to your administrator.") # TODO: We should save the downloaded content, and just # try to decrypt again if there was a failure. return # If we failed we should stop here. diff --git a/tests/test_logic.py b/tests/test_logic.py index 61744ee0c9..f216b7f137 100644 --- a/tests/test_logic.py +++ b/tests/test_logic.py @@ -1038,7 +1038,7 @@ def test_Client_on_file_downloaded_decrypt_failure(homedir, config, mocker): cl.on_file_downloaded(result_data, current_object=submission_db_object) mock_gpg.call_count == 1 cl.set_status.assert_called_once_with( - "Failed to download and decrypt file, please try again.") + "Failed to decrypt file, please try again or talk to your administrator.") mock_storage.set_object_decryption_status.assert_called_once_with( submission_db_object.uuid, mock_session, db.File, False)