X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.c;fp=src%2Fhelper%2Fcommand.c;h=7a3c2d4fe47a6b129d55bdf3e76b7533c5b493b1;hp=0afbe2ccf2d6b135cd7d5b65854d706998fdd527;hb=d470b84b51c89ecbc541081cc2cfa1744437dfa3;hpb=79a859413038c85f084ec1e91c90d2a85344ea2f diff --git a/src/helper/command.c b/src/helper/command.c index 0afbe2ccf2..7a3c2d4fe4 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -1037,7 +1037,7 @@ static int command_unknown(Jim_Interp *interp, int argc, Jim_Obj *const *argv) /* pass the command through to the intended handler */ if (c->jim_handler) { if (!command_can_run(cmd_ctx, c)) - return ERROR_FAIL; + return JIM_ERR; interp->cmdPrivData = c->jim_handler_data; return (*c->jim_handler)(interp, count, start);