Community
Participate
Working Groups
Build Identifier: While developping a TCF client, I had a hard time trying to find why the Processes.detach () would not work. Toni Leherbauer pointed me at the agent source code which states : static void command_detach(char * token, Channel * c) { /* TODO: implement command_detach() */ exception(ERR_PROTOCOL); } I lost time because the error code is not the appropriate one from my point of view. I tried to double check all the json stuff, and could not find why I would get a protocol error. I found at least two error code which would be a bit more appropriate : #define ERR_UNSUPPORTED (STD_ERR_BASE + 23) #define ERR_INV_COMMAND (STD_ERR_BASE + 25) Could it be possible to return a better error message ? Thanks DERF Reproducible: Always Steps to Reproduce: 1. attach to a process 2. try to detach from that process 3.
I have changed the code to return properly formatted error report that reads "Detach is not implemented yet. Unsupported command". Thanks.
https://git.eclipse.org/c/tcf/org.eclipse.tcf.agent.git/commit/?h=0.6.0&id=7ec5280b37ce3d8f7703bd9440eef2257f31e2c7