improve error message for slash-terminated non-directories

This commit is contained in:
Brian Warner 2015-03-10 09:17:17 -07:00
parent e80697da1b
commit f3a9be1c5e
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View 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)