Change jtag_add_pathmove to set jtag_error rather than call exit():
[fw/openocd] / src / helper / command.c
index f57f7ae936387076cfc6fca66d4340398435570e..a82eb4dae5cdfca911c3a8bb2a744cd5d87ae9d5 100644 (file)
@@ -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;
        }