mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-21 09:55:15 -04:00
clang-format check_curl
This commit is contained in:
parent
5b6252c783
commit
8868e021b6
1 changed files with 4 additions and 3 deletions
|
|
@ -276,11 +276,12 @@ mp_subcheck check_http(const check_curl_config config, check_curl_working_state
|
|||
/* Custom handling for timeouts, state might be set to non CRITICAL */
|
||||
if (res == CURLE_OPERATION_TIMEDOUT) {
|
||||
xasprintf(&sc_curl.output, _("cURL returned %d - %s"), res,
|
||||
errbuf[0] ? errbuf : curl_easy_strerror(res));
|
||||
errbuf[0] ? errbuf : curl_easy_strerror(res));
|
||||
sc_curl = mp_set_subcheck_state(sc_curl, config.on_timeout_result_state);
|
||||
} else {
|
||||
xasprintf(&sc_curl.output, _("Error while performing connection: cURL returned %d - %s"),
|
||||
res, errbuf[0] ? errbuf : curl_easy_strerror(res));
|
||||
xasprintf(&sc_curl.output,
|
||||
_("Error while performing connection: cURL returned %d - %s"), res,
|
||||
errbuf[0] ? errbuf : curl_easy_strerror(res));
|
||||
sc_curl = mp_set_subcheck_state(sc_curl, STATE_CRITICAL);
|
||||
}
|
||||
mp_add_subcheck_to_subcheck(&sc_result, sc_curl);
|
||||
|
|
|
|||
Loading…
Reference in a new issue