mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 03:44:23 +00:00
better formatting
This commit is contained in:
parent
c6f4f0b7d5
commit
088fcff442
@ -21,7 +21,10 @@ from hyperlink import URL
|
||||
from twisted.python.filepath import FilePath
|
||||
|
||||
from allmydata.util import base32
|
||||
from allmydata.util.encodingutil import to_str
|
||||
from allmydata.util.encodingutil import (
|
||||
to_str,
|
||||
quote_output,
|
||||
)
|
||||
from allmydata.uri import (
|
||||
from_string_dirnode,
|
||||
from_string,
|
||||
@ -192,7 +195,9 @@ class DirectoryNodeHandler(ReplaceMeMixin, Resource, object):
|
||||
# file in the way.
|
||||
return ErrorPage(
|
||||
http.CONFLICT,
|
||||
"Unable to create directory '{}': a file was in the way".format(name),
|
||||
"Unable to create directory {}: a file was in the way".format(
|
||||
quote_output(name)
|
||||
),
|
||||
"no details",
|
||||
)
|
||||
return make_handler_for(node, self.client, self.node, name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user