From dbd373289fc01ad05220796b34b2f2bbe87bae9d Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 23 Oct 2009 17:22:43 +0000 Subject: [PATCH] return error when no layout engine is available for the cmdname --- lib/common/input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.40.0