From 9e56d6bf791d61db7f090ca3fe3a9557eb30d8c8 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Wed, 19 May 2021 16:40:08 -0700 Subject: [PATCH] Improve wording of try again message --- certbot/certbot/_internal/client.py | 2 +- certbot/tests/client_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot/certbot/_internal/client.py b/certbot/certbot/_internal/client.py index 97924c073..d90c0254b 100644 --- a/certbot/certbot/_internal/client.py +++ b/certbot/certbot/_internal/client.py @@ -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): diff --git a/certbot/tests/client_test.py b/certbot/tests/client_test.py index f5ebc6035..b42e6992e 100644 --- a/certbot/tests/client_test.py +++ b/certbot/tests/client_test.py @@ -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')