tools: fix error reporing on unknown storage pool
This commit is contained in:
parent
5e6b8aac02
commit
471523167e
@ -314,6 +314,9 @@ class PoolsAction(QubesAction):
|
|||||||
except qubesadmin.exc.QubesException as e:
|
except qubesadmin.exc.QubesException as e:
|
||||||
parser.error(str(e))
|
parser.error(str(e))
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
except KeyError:
|
||||||
|
parser.error('No such pools: %s' % pool_names)
|
||||||
|
sys.exit(2)
|
||||||
|
|
||||||
|
|
||||||
class QubesArgumentParser(argparse.ArgumentParser):
|
class QubesArgumentParser(argparse.ArgumentParser):
|
||||||
|
Loading…
Reference in New Issue
Block a user