MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Http_LogError

Function Http_LogError

src/_HttpBase.h:391–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389static cc_bool HttpBackend_DescribeError(cc_result res, cc_string* dst);
390
391void 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/*########################################################################################################################*

Callers 2

TexturePack_CheckPendingFunction · 0.70

Calls 2

Logger_FormatWarnFunction · 0.85
String_Format1Function · 0.85

Tested by

no test coverage detected