From 13b7cfc48885c08a8bea3f54667fdfaf8c8e4a55 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Sat, 9 Nov 2024 16:04:38 -0300 Subject: [PATCH] actually now --- loader/include/Geode/loader/Loader.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loader/include/Geode/loader/Loader.hpp b/loader/include/Geode/loader/Loader.hpp index cdb1ddb7..a59c84d3 100644 --- a/loader/include/Geode/loader/Loader.hpp +++ b/loader/include/Geode/loader/Loader.hpp @@ -124,11 +124,11 @@ namespace geode { Result parseLaunchArgument(std::string_view const name) const { auto str = this->getLaunchArgument(name); if (!str.has_value()) { - return Err("Launch argument '{}' not found", name); + return Err(fmt::format("Launch argument '{}' not found", name)); } auto jsonOpt = matjson::Value::parse(str.value()); if (jsonOpt.isErr()) { - return Err("Parsing launch argument '{}' failed: {}", name, jsonOpt.unwrapErr()); + return Err(fmt::format("Parsing launch argument '{}' failed: {}", name, jsonOpt.unwrapErr())); } auto value = jsonOpt.unwrap(); return value.template as();