Improve wording of try again message

This commit is contained in:
Erica Portnoy 2021-05-19 16:40:08 -07:00
parent f104d1f9bf
commit 9e56d6bf79
2 changed files with 2 additions and 2 deletions

View file

@ -538,7 +538,7 @@ class Client:
msg = f"Failed to install the certificate (installer: {self.config.installer})."
if cert_name:
msg += (" Try again by running:\n\n"
msg += (" Try again after fixing errors by running:\n\n"
f" {cli.cli_constants.cli_command} install --cert-name {cert_name}\n")
with error_handler.ErrorHandler(self._recovery_routine_with_msg, msg):

View file

@ -552,7 +552,7 @@ class ClientTest(ClientTestCommon):
mock_notify.assert_any_call('Deploying certificate')
mock_notify.assert_any_call(
'Failed to install the certificate (installer: foobar). '
'Try again by running:\n\n certbot install --cert-name foo.bar\n'
'Try again after fixing errors by running:\n\n certbot install --cert-name foo.bar\n'
)
@mock.patch('certbot._internal.client.display_util.notify')