Commit fba14565 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Report which param setting failed, this is not obvious during startup.

parent 711b83de
......@@ -954,6 +954,8 @@ MCF_ParamSet(struct cli *cli, const char *param, const char *val)
if (pp != NULL) {
pp->func(cli, pp, val);
if (cli->result != CLIS_OK) {
cli_out(cli, "(attempting to set param %s to %s)\n",
pp->name, val);
} else if (child_pid >= 0 && pp->flags & MUST_RESTART) {
cli_out(cli, "Change will take effect"
" when child is restarted");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment