X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.c;h=0876d8777d9f5e86cc98a647b5f22dde4593fc8c;hp=12827ecd9c66e15e4a4cb6450e838ea2cd12a25d;hb=dfbb9f3e89ae;hpb=c1ee650a9aead0bd25d7aa37fd65e5a3ed0c6e38 diff --git a/src/helper/command.c b/src/helper/command.c index 12827ecd9c..0876d8777d 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -346,6 +346,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"); return ERROR_FAIL; }