Update to new Throw message.
This commit is contained in:
parent
fe6d13eb7e
commit
e2edf6129d
|
@ -135,7 +135,7 @@ const PkmnLib::Library::PokemonForme* BuildSpecies::BuildForme(const std::string
|
||||||
auto s = ab.value().get<std::string>();
|
auto s = ab.value().get<std::string>();
|
||||||
auto tryAbility = talentLibrary->TryGet(ArbUt::StringView(s.c_str(), s.length()));
|
auto tryAbility = talentLibrary->TryGet(ArbUt::StringView(s.c_str(), s.length()));
|
||||||
if (!tryAbility.has_value())
|
if (!tryAbility.has_value())
|
||||||
THROW("Unknown ability " << s);
|
THROW("Unknown ability ", s);
|
||||||
abilities.Append(tryAbility.value());
|
abilities.Append(tryAbility.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ const PkmnLib::Library::PokemonForme* BuildSpecies::BuildForme(const std::string
|
||||||
auto s = ab.value().get<std::string>();
|
auto s = ab.value().get<std::string>();
|
||||||
auto tryAbility = talentLibrary->TryGet(ArbUt::StringView(s.c_str(), s.length()));
|
auto tryAbility = talentLibrary->TryGet(ArbUt::StringView(s.c_str(), s.length()));
|
||||||
if (!tryAbility.has_value())
|
if (!tryAbility.has_value())
|
||||||
THROW("Unknown ability " << s);
|
THROW("Unknown ability ", s);
|
||||||
hiddenAbilities.Append(tryAbility.value());
|
hiddenAbilities.Append(tryAbility.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue