Show error for unknown commands.
This commit is contained in:
parent
ed244c1338
commit
c1ada5cc39
7
patool
7
patool
|
@ -45,5 +45,8 @@ def list (archive, verbose=False):
|
||||||
def formats ():
|
def formats ():
|
||||||
return patoolib.list_formats()
|
return patoolib.list_formats()
|
||||||
|
|
||||||
|
try:
|
||||||
sys.exit(patoolib.baker.run())
|
sys.exit(patoolib.baker.run())
|
||||||
|
except patoolib.baker.CommandError, msg:
|
||||||
|
print >>sys.stderr, "patool error:", msg
|
||||||
|
sys.exit(1)
|
||||||
|
|
Loading…
Reference in New Issue