]> granicus.if.org Git - graphviz/commitdiff
return error when no layout engine is available for the cmdname
authorellson <devnull@localhost>
Fri, 23 Oct 2009 17:22:43 +0000 (17:22 +0000)
committerellson <devnull@localhost>
Fri, 23 Oct 2009 17:22:43 +0000 (17:22 +0000)
lib/common/input.c

index bd7e20006f9a87296304cecb9f646895bf410187..34fe1e4032d17de84c4753fdb5933e0100d8f0cf 100644 (file)
@@ -259,8 +259,10 @@ void dotneato_args_initialize(GVC_t * gvc, int argc, char **argv)
        exit (0);
 
     i = gvlayout_select(gvc, gvc->common.cmdname);
-    if (i == NO_SUPPORT)
-       gvlayout_select(gvc, "dot");
+    if (i == NO_SUPPORT) {
+       fprintf(stderr, "There is no layout engine support for \"%s\"\n", gvc->common.cmdname);
+       exit(1);
+    }
 
     /* feed the globals */
     Verbose = gvc->common.verbose;