From 7f82554ed1a1780798f3c958e147f01bd8a60493 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 15 Jun 2006 17:45:57 +0000 Subject: Produce an error message if setting up a dot pipe fails git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1884 ce84e21b-d406-0410-9b95-82705330c041 --- tools/groups-to-dot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/groups-to-dot.py b/tools/groups-to-dot.py index 86c47a398..fa384c294 100755 --- a/tools/groups-to-dot.py +++ b/tools/groups-to-dot.py @@ -22,7 +22,11 @@ if __name__ == '__main__': if not categories.has_key(group.get('category')): categories[group.get('category')] = colors.pop() - dotpipe.tochild.write("digraph groups {\n") + try: + dotpipe.tochild.write("digraph groups {\n") + except: + print "write to dot process failed. Is graphviz installed?" + raise SystemExit, 1 dotpipe.tochild.write('\trankdir="LR";\n') if '-h' in sys.argv: for client in clients.findall('Client'): -- cgit v1.2.3-1-g7c22