summaryrefslogtreecommitdiffstats
path: root/platform/ios
diff options
context:
space:
mode:
authorKamil Brzoskowski <brzoskowskikamil@gmail.com>2023-06-28 17:51:02 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-07-09 23:39:45 +0200
commit3cd865dbe8df06652081540451633050960b75be (patch)
treeeafe90745fb59f71bf768d0219b2d42f3dfa6808 /platform/ios
parent85c9db592f22941ce7c2a540a526e702f4cc1848 (diff)
downloadredot-engine-3cd865dbe8df06652081540451633050960b75be.tar.gz
Fix formatting of dlopen error message on Windows
And harmonize the format for all platforms. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/os_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/os_ios.mm b/platform/ios/os_ios.mm
index 461c226070..50102e02cc 100644
--- a/platform/ios/os_ios.mm
+++ b/platform/ios/os_ios.mm
@@ -257,7 +257,7 @@ Error OS_IOS::open_dynamic_library(const String p_path, void *&p_library_handle,
}
p_library_handle = dlopen(path.utf8().get_data(), RTLD_NOW);
- ERR_FAIL_COND_V_MSG(!p_library_handle, ERR_CANT_OPEN, "Can't open dynamic library: " + p_path + ", error: " + dlerror() + ".");
+ ERR_FAIL_COND_V_MSG(!p_library_handle, ERR_CANT_OPEN, vformat("Can't open dynamic library: %s. Error: %s.", p_path, dlerror()));
if (r_resolved_path != nullptr) {
*r_resolved_path = path;