mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-17 23:46:09 +00:00
better error-code
This commit is contained in:
parent
9732955eba
commit
203066e8fd
@ -154,7 +154,7 @@ class FileNodeHandler(Resource, ReplaceMeMixin, object):
|
||||
raise FileProhibited(self.node.reason)
|
||||
if should_create_intermediate_directories(req):
|
||||
return ErrorPage(
|
||||
http.BAD_REQUEST,
|
||||
http.CONFLICT,
|
||||
u"Cannot create directory {}, because its "
|
||||
u"parent is a file, not a directory".format(
|
||||
quote_output(name, encoding='utf-8')
|
||||
|
Loading…
x
Reference in New Issue
Block a user