Revision 03a8dbdc
ID | 03a8dbdc0c84f0914f11e80c3570d3a8b00c6a58 |
Parent | 11fb401c |
Child | 130a6a6f |
Implement handling of luxi errors in cli.py
Currently the generic handling of ganeti errors in cli.py (GenericMain
and FormatError) only handles the core ganeti errors, and not the client
protocol errors (which live in a separate hierarchy).
This patch adds handling of luxi errors too, and also adds another luxi
error for the case when the master is not running. This gives us a nice:
gnta1:~# gnt-node list
Cannot communicate with the master daemon.
Is it running and listening on '/var/run/ganeti-master.sock'?
error message instead of a traceback.
Reviewed-by: amishchenko
Files
- added
- modified
- copied
- renamed
- deleted