mirror of
https://github.com/tmux/tmux.git
synced 2025-12-26 11:26:07 +00:00
Stopped ignoring error on client command parse.
I figure this might be worth doing. I know now we output the error on the client and the server now has error handling code for nothing in it's argument handling code. I think ideally we should pass the parsed cmd structure to the server and thus avoid parsing twice. This commit doesn't do that yet.
This commit is contained in:
5
client.c
5
client.c
@@ -266,8 +266,11 @@ client_main(struct event_base *base, int argc, char **argv, uint64_t flags,
|
|||||||
if (cmd_list_any_have(pr->cmdlist, CMD_STARTSERVER))
|
if (cmd_list_any_have(pr->cmdlist, CMD_STARTSERVER))
|
||||||
flags |= CLIENT_STARTSERVER;
|
flags |= CLIENT_STARTSERVER;
|
||||||
cmd_list_free(pr->cmdlist);
|
cmd_list_free(pr->cmdlist);
|
||||||
} else
|
} else {
|
||||||
|
fprintf(stderr, "%s\n", pr->error);
|
||||||
free(pr->error);
|
free(pr->error);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
args_free_values(values, argc);
|
args_free_values(values, argc);
|
||||||
free(values);
|
free(values);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user