mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
Make the error even more informative
This commit is contained in:
@@ -159,8 +159,9 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||||||
# Verify Apache is installed
|
# Verify Apache is installed
|
||||||
restart_cmd = constants.os_constant("restart_cmd")[0]
|
restart_cmd = constants.os_constant("restart_cmd")[0]
|
||||||
if not util.exe_exists(restart_cmd):
|
if not util.exe_exists(restart_cmd):
|
||||||
|
logger.warn("Failed to find %s in PATH: %s", restart_cmd, os.environ["PATH"])
|
||||||
raise errors.NoInstallationError(
|
raise errors.NoInstallationError(
|
||||||
'Cannot find Apache install ({0} not in PATH)'.format(restart_cmd))
|
'Cannot find Apache control command {0}'.format(restart_cmd))
|
||||||
|
|
||||||
# Make sure configuration is valid
|
# Make sure configuration is valid
|
||||||
self.config_test()
|
self.config_test()
|
||||||
|
|||||||
Reference in New Issue
Block a user