Condense plugin loading failure messages a little bit

This commit is contained in:
UnknownShadow200 2020-07-27 00:07:58 +10:00
parent 149fe29c23
commit 56b2986e41
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ void Logger_DynamicLibWarn(const char* place, const String* path) {
String_Format2(&msg, "Error %c '%s'", place, path);
if (DynamicLib_DescribeError(&err)) {
String_Format1(&msg, "\n Error meaning: %s", &err);
String_Format1(&msg, ":\n %s", &err);
}
Logger_WarnFunc(&msg);
}

View File

@ -1397,7 +1397,7 @@ void* DynamicLib_Get2(void* lib, const char* name) {
cc_bool DynamicLib_DescribeError(String* dst) {
cc_result res = GetLastError();
Platform_DescribeError(res, dst);
String_Format1(dst, " (%i)", &res);
String_Format1(dst, " (error %i)", &res);
return true;
}
#elif defined CC_BUILD_WEB