tahoe_rm.py: better error message when there is no path. refs #1292

This commit is contained in:
david-sarah 2011-01-22 00:42:12 -07:00
parent 00fefeba49
commit 52963f4a76

View File

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