mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 16:14:44 +02:00
Merge pull request #3504 from certbot/no-installers-error
Improve error message for "no installer plugin."
This commit is contained in:
@@ -261,9 +261,12 @@ def diagnose_configurator_problem(cfg_type, requested, plugins):
|
|||||||
"your existing configuration.\nThe error was: {1!r}"
|
"your existing configuration.\nThe error was: {1!r}"
|
||||||
.format(requested, plugins[requested].problem))
|
.format(requested, plugins[requested].problem))
|
||||||
elif cfg_type == "installer":
|
elif cfg_type == "installer":
|
||||||
msg = ('No installer plugins seem to be present and working on your system; '
|
from certbot.cli import cli_command
|
||||||
'fix that or try running certbot with the "certonly" command to obtain'
|
msg = ('Certbot doesn\'t know how to automatically configure the web '
|
||||||
' a certificate you can install manually')
|
'server on this system. However, it can still get a certificate for '
|
||||||
|
'you. Please run "{0} certonly" to do so. You\'ll need to '
|
||||||
|
'manually configure your web server to use the resulting '
|
||||||
|
'certificate.').format(cli_command)
|
||||||
else:
|
else:
|
||||||
msg = "{0} could not be determined or is not installed".format(cfg_type)
|
msg = "{0} could not be determined or is not installed".format(cfg_type)
|
||||||
raise errors.PluginSelectionError(msg)
|
raise errors.PluginSelectionError(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user