error numbers are only reported at DEBUG log levels and
used internally, they are not part of the user interface.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
int e = target->type->examine(target);
if (e != ERROR_OK)
{
- Jim_Obj *eObj = Jim_NewIntObj(interp, e);
- Jim_SetResultFormatted(interp, "examine-fails: %#s", eObj);
- Jim_FreeNewObj(interp, eObj);
return JIM_ERR;
}
return JIM_OK;
}
if (e != ERROR_OK)
{
- Jim_Obj *eObj = Jim_NewIntObj(interp, e);
- Jim_SetResultFormatted(interp, "poll-fails: %#s", eObj);
- Jim_FreeNewObj(interp, eObj);
return JIM_ERR;
}
return JIM_OK;