mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-06 17:41:44 +00:00
Slightly improve error message about old config files (avoid unnecessary Unicode escaping). refs #1385
This commit is contained in:
parent
ed3dbe4985
commit
f45bfeb3df
@ -11,7 +11,7 @@ from allmydata.util import log
|
|||||||
from allmydata.util import fileutil, iputil, observer
|
from allmydata.util import fileutil, iputil, observer
|
||||||
from allmydata.util.assertutil import precondition, _assert
|
from allmydata.util.assertutil import precondition, _assert
|
||||||
from allmydata.util.fileutil import abspath_expanduser_unicode
|
from allmydata.util.fileutil import abspath_expanduser_unicode
|
||||||
from allmydata.util.encodingutil import get_filesystem_encoding
|
from allmydata.util.encodingutil import get_filesystem_encoding, quote_output
|
||||||
|
|
||||||
# Add our application versions to the data that Foolscap's LogPublisher
|
# Add our application versions to the data that Foolscap's LogPublisher
|
||||||
# reports.
|
# reports.
|
||||||
@ -128,7 +128,8 @@ class Node(service.MultiService):
|
|||||||
if name not in self.GENERATED_FILES:
|
if name not in self.GENERATED_FILES:
|
||||||
fullfname = os.path.join(self.basedir, name)
|
fullfname = os.path.join(self.basedir, name)
|
||||||
if os.path.exists(fullfname):
|
if os.path.exists(fullfname):
|
||||||
log.err("Found pre-Tahoe-LAFS-v1.3 configuration file: '%s'. See docs/historical/configuration.rst." % (fullfname,))
|
log.err("Found pre-Tahoe-LAFS-v1.3 configuration file: %s. "
|
||||||
|
"See docs/historical/configuration.rst." % quote_output(fullfname))
|
||||||
oldfnames.add(fullfname)
|
oldfnames.add(fullfname)
|
||||||
if oldfnames:
|
if oldfnames:
|
||||||
raise OldConfigError(oldfnames)
|
raise OldConfigError(oldfnames)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user