mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 15:37:53 -05:00
actually now
This commit is contained in:
parent
e8ef9b79c8
commit
13b7cfc488
1 changed files with 2 additions and 2 deletions
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue