From 00d193e7320d12d792afe8bdc62915e294e3546d Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 22 Sep 2024 22:22:32 -0400 Subject: [PATCH] Fix Bad Error --- launcher/src/util.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/src/util.cpp b/launcher/src/util.cpp index c6564ae50a..849f79094f 100644 --- a/launcher/src/util.cpp +++ b/launcher/src/util.cpp @@ -26,7 +26,9 @@ void chop_last_component(std::string &str) { // Get Binary Directory (Remember To Free) std::string safe_realpath(const std::string &path) { char *raw = realpath(path.c_str(), nullptr); - ALLOC_CHECK(raw); + if (raw == nullptr) { + ERR("Unable To Resolve: %s", path.c_str()); + } std::string str = raw; free(raw); return str;