mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-13 09:35:23 -04:00
Condense plugin loading failure messages a little bit
This commit is contained in:
parent
149fe29c23
commit
56b2986e41
@ -138,7 +138,7 @@ void Logger_DynamicLibWarn(const char* place, const String* path) {
|
|||||||
|
|
||||||
String_Format2(&msg, "Error %c '%s'", place, path);
|
String_Format2(&msg, "Error %c '%s'", place, path);
|
||||||
if (DynamicLib_DescribeError(&err)) {
|
if (DynamicLib_DescribeError(&err)) {
|
||||||
String_Format1(&msg, "\n Error meaning: %s", &err);
|
String_Format1(&msg, ":\n %s", &err);
|
||||||
}
|
}
|
||||||
Logger_WarnFunc(&msg);
|
Logger_WarnFunc(&msg);
|
||||||
}
|
}
|
||||||
|
@ -1397,7 +1397,7 @@ void* DynamicLib_Get2(void* lib, const char* name) {
|
|||||||
cc_bool DynamicLib_DescribeError(String* dst) {
|
cc_bool DynamicLib_DescribeError(String* dst) {
|
||||||
cc_result res = GetLastError();
|
cc_result res = GetLastError();
|
||||||
Platform_DescribeError(res, dst);
|
Platform_DescribeError(res, dst);
|
||||||
String_Format1(dst, " (%i)", &res);
|
String_Format1(dst, " (error %i)", &res);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#elif defined CC_BUILD_WEB
|
#elif defined CC_BUILD_WEB
|
||||||
|
Loading…
x
Reference in New Issue
Block a user