mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 07:06:41 +00:00
tahoe_rm.py: better error message when there is no path. refs #1292
This commit is contained in:
parent
00fefeba49
commit
52963f4a76
@ -21,7 +21,11 @@ def rm(options):
|
||||
except UnknownAliasError, e:
|
||||
e.display(stderr)
|
||||
return 1
|
||||
assert path
|
||||
if not path:
|
||||
print >>stderr, """
|
||||
'tahoe rm' can only unlink directory entries, so a path must be given."""
|
||||
return 1
|
||||
|
||||
url = nodeurl + "uri/%s" % urllib.quote(rootcap)
|
||||
url += "/" + escape_path(path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user