From 56b2986e41f87e5180f18da8dda8d9388b6764a8 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 27 Jul 2020 00:07:58 +1000 Subject: [PATCH] Condense plugin loading failure messages a little bit --- src/Logger.c | 2 +- src/Platform.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Logger.c b/src/Logger.c index 6975ac74e..af2dcfecd 100644 --- a/src/Logger.c +++ b/src/Logger.c @@ -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); } diff --git a/src/Platform.c b/src/Platform.c index 7cbca71c3..91273c37b 100644 --- a/src/Platform.c +++ b/src/Platform.c @@ -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