From 1680c94c531270874c294f83339d4e040bc853a9 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 23 Oct 2009 17:33:51 +0000 Subject: [PATCH] improve error message in the case of dot not finding dot_layout plugin --- lib/common/input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/common/input.c b/lib/common/input.c index 34fe1e403..e669a711b 100644 --- a/lib/common/input.c +++ b/lib/common/input.c @@ -261,6 +261,9 @@ void dotneato_args_initialize(GVC_t * gvc, int argc, char **argv) i = gvlayout_select(gvc, gvc->common.cmdname); if (i == NO_SUPPORT) { fprintf(stderr, "There is no layout engine support for \"%s\"\n", gvc->common.cmdname); + if (streq(gvc->common.cmdname, "dot")) { + fprintf(stderr, "Perhaps \"dot -c\" needs to be run by root to register the plugins?\n"); + } exit(1); } -- 2.40.0