Update to new Throw message.

This commit is contained in:
Deukhoofd 2021-11-21 12:42:35 +01:00
parent fe6d13eb7e
commit e2edf6129d
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ const PkmnLib::Library::PokemonForme* BuildSpecies::BuildForme(const std::string
auto s = ab.value().get<std::string>();
auto tryAbility = talentLibrary->TryGet(ArbUt::StringView(s.c_str(), s.length()));
if (!tryAbility.has_value())
THROW("Unknown ability " << s);
THROW("Unknown ability ", s);
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 tryAbility = talentLibrary->TryGet(ArbUt::StringView(s.c_str(), s.length()));
if (!tryAbility.has_value())
THROW("Unknown ability " << s);
THROW("Unknown ability ", s);
hiddenAbilities.Append(tryAbility.value());
}