}
else {
action_build_list(&http_req_keywords.list, &trash);
- ha_alert("parsing [%s:%d]: 'http-request' expects %s%s, but got '%s'%s.\n",
- file, linenum, *trash.area ? ", " : "", trash.area,
+ ha_alert("parsing [%s:%d]: 'http-request' expects %s, but got '%s'%s.\n",
+ file, linenum, trash.area,
args[0], *args[0] ? "" : " (missing argument)");
goto out_err;
}
}
else {
action_build_list(&http_res_keywords.list, &trash);
- ha_alert("parsing [%s:%d]: 'http-response' expects %s%s, but got '%s'%s.\n",
- file, linenum, *trash.area ? ", " : "", trash.area,
+ ha_alert("parsing [%s:%d]: 'http-response' expects %s, but got '%s'%s.\n",
+ file, linenum, trash.area,
args[0], *args[0] ? "" : " (missing argument)");
goto out_err;
}
}
else {
action_build_list(&http_after_res_keywords.list, &trash);
- ha_alert("parsing [%s:%d]: 'http-after-response' expects %s%s, but got '%s'%s.\n",
- file, linenum, *trash.area ? ", " : "", trash.area,
+ ha_alert("parsing [%s:%d]: 'http-after-response' expects %s, but got '%s'%s.\n",
+ file, linenum, trash.area,
args[0], *args[0] ? "" : " (missing argument)");
goto out_err;
}