From: <zw...@ma...> - 2009-05-24 22:57:58
|
Author: zwelch Date: 2009-05-24 22:57:53 +0200 (Sun, 24 May 2009) New Revision: 1908 Modified: trunk/src/helper/command.c Log: David Brownell <da...@pa...>: The "Illegal mode for command" diagnostic is deeply useless. Say "Command '%s' only runs during configuration stage" instead, letting users know what the real issue is. Modified: trunk/src/helper/command.c =================================================================== --- trunk/src/helper/command.c 2009-05-24 20:56:13 UTC (rev 1907) +++ trunk/src/helper/command.c 2009-05-24 20:57:53 UTC (rev 1908) @@ -392,7 +392,7 @@ if (!((context->mode == COMMAND_CONFIG) || (c->mode == COMMAND_ANY) || (c->mode == context->mode) )) { /* Config commands can not run after the config stage */ - LOG_ERROR("Illegal mode for command"); + LOG_ERROR("Command '%s' only runs during configuration stage", c->name); return ERROR_FAIL; } |