mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
Add filename to dns_common.py configuration errors (#9501)
Fixes #9500 Also print the path to the file with errors for the error "Error parsing credentials configuration" of `dns_common.py`. This makes debugging this error much easier.
This commit is contained in:
committed by
GitHub
parent
4c04328e6d
commit
6b7549bf3a
@@ -272,8 +272,18 @@ class CredentialsConfiguration:
|
||||
try:
|
||||
self.confobj = configobj.ConfigObj(filename)
|
||||
except configobj.ConfigObjError as e:
|
||||
logger.debug("Error parsing credentials configuration: %s", e, exc_info=True)
|
||||
raise errors.PluginError("Error parsing credentials configuration: {0}".format(e))
|
||||
logger.debug(
|
||||
"Error parsing credentials configuration '%s': %s",
|
||||
filename,
|
||||
e,
|
||||
exc_info=True
|
||||
)
|
||||
raise errors.PluginError(
|
||||
"Error parsing credentials configuration '{}': {}".format(
|
||||
filename,
|
||||
e
|
||||
)
|
||||
)
|
||||
|
||||
self.mapper = mapper
|
||||
|
||||
|
||||
Reference in New Issue
Block a user