Skip to content
Snippets Groups Projects
Commit 2e55b683 authored by zwelch's avatar zwelch
Browse files

David Brownell <david-b@pacbell.net>:

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.


git-svn-id: svn://svn.berlios.de/openocd/trunk@1908 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent e046954d
No related branches found
No related tags found
No related merge requests found
......@@ -392,7 +392,7 @@ int run_command(command_context_t *context, command_t *c, char *words[], int num
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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment