target/arm_tpiu: Make error message easier to understand
[fw/openocd] / src / target / arm_tpiu_swo.c
index 024521364dba1b83613e2396b174dcb8d0e95edc..387ad9e9e193ddc435e1a05dc679629438dc79fb 100644 (file)
@@ -886,7 +886,8 @@ static int arm_tpiu_swo_create(Jim_Interp *interp, struct arm_tpiu_swo_object *o
        /* does this command exist? */
        cmd = Jim_GetCommand(interp, Jim_NewStringObj(interp, obj->name, -1), JIM_NONE);
        if (cmd) {
-               Jim_SetResultFormatted(interp, "Command: %s Exists", obj->name);
+               Jim_SetResultFormatted(interp, "cannot create TPIU object because a command with name '%s' already exists",
+                       obj->name);
                return JIM_ERR;
        }