From: ellson Date: Fri, 23 Oct 2009 17:22:43 +0000 (+0000) Subject: return error when no layout engine is available for the cmdname X-Git-Tag: LAST_LIBGRAPH~32^2~1636 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbd373289fc01ad05220796b34b2f2bbe87bae9d;p=graphviz return error when no layout engine is available for the cmdname --- diff --git a/lib/common/input.c b/lib/common/input.c index bd7e20006..34fe1e403 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -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;