mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 13:07:56 +00:00
improve error message for slash-terminated non-directories
This commit is contained in:
parent
e80697da1b
commit
f3a9be1c5e
@ -531,7 +531,7 @@ class Copier:
|
||||
target_is_file = False
|
||||
|
||||
if target_is_file and target_has_trailing_slash:
|
||||
self.to_stderr("target is not a directory, but has a slash")
|
||||
self.to_stderr("target is not a directory, but ends with a slash")
|
||||
return 1
|
||||
|
||||
if len(sources) > 1 and target_is_file:
|
||||
|
@ -919,7 +919,7 @@ class CopyOut(GridTestMixin, CLITestMixin, unittest.TestCase):
|
||||
return set(["E5-DIRTOFILE"])
|
||||
if err == "copying multiple things requires target be a directory":
|
||||
return set(["E6-MANYONE"])
|
||||
if err == "target is not a directory, but has a slash":
|
||||
if err == "target is not a directory, but ends with a slash":
|
||||
return set(["E7-BADSLASH"])
|
||||
self.fail("unrecognized error ('%s') %s" % (case, res))
|
||||
d.addCallback(_check)
|
||||
|
Loading…
Reference in New Issue
Block a user