| 389 | static cc_bool HttpBackend_DescribeError(cc_result res, cc_string* dst); |
| 390 | |
| 391 | void Http_LogError(const char* action, const struct HttpRequest* item) { |
| 392 | cc_string msg; char msgBuffer[512]; |
| 393 | String_InitArray(msg, msgBuffer); |
| 394 | |
| 395 | Logger_FormatWarn(&msg, item->result, action, HttpBackend_DescribeError); |
| 396 | if (item->error && item->error[0]) { |
| 397 | String_Format1(&msg, "\n Error details: %c", item->error); |
| 398 | } |
| 399 | Logger_WarnFunc(&msg); |
| 400 | } |
| 401 | |
| 402 | |
| 403 | /*########################################################################################################################* |
no test coverage detected