mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +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:
|
except UnknownAliasError, e:
|
||||||
e.display(stderr)
|
e.display(stderr)
|
||||||
return 1
|
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 = nodeurl + "uri/%s" % urllib.quote(rootcap)
|
||||||
url += "/" + escape_path(path)
|
url += "/" + escape_path(path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user