Skip to content

Commit

Permalink
actually now
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Nov 9, 2024
1 parent e8ef9b7 commit 13b7cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/include/Geode/loader/Loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ namespace geode {
Result<T> 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<T>();
Expand Down

0 comments on commit 13b7cfc

Please sign in to comment.