Update to new THROW message.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
50e2f39919
commit
6d3c027a08
|
@ -65,7 +65,7 @@ namespace PkmnLib::Battling {
|
|||
if (!this->_heldItem.IsEmpty()) {
|
||||
auto item = _library->GetItemLibrary()->TryGet(this->_heldItem);
|
||||
if (!item.has_value()) {
|
||||
THROW("Unknown Item: " << this->_heldItem.std_str());
|
||||
THROW("Unknown Item: ", this->_heldItem.std_str());
|
||||
}
|
||||
heldItem = item.value();
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ namespace PkmnLib::Battling {
|
|||
CreatureLib::Battling::AttackLearnMethod method) {
|
||||
auto v = _library->GetMoveLibrary()->TryGet(moveName);
|
||||
if (!v.has_value()) {
|
||||
THROW("Invalid Move given: " << moveName.std_str());
|
||||
THROW("Invalid Move given: ", moveName.std_str());
|
||||
}
|
||||
if (_currentMove >= _library->GetSettings()->GetMaximalAttacks()) {
|
||||
throw ArbUt::Exception("This pokemon already has the maximal allowed moves.");
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
} else {
|
||||
ctx->PopState();
|
||||
}
|
||||
THROW("Script didn't finish properly; message " << scriptResult);
|
||||
THROW("Script didn't finish properly; message ", scriptResult);
|
||||
}
|
||||
onEnd(ctx);
|
||||
if (newContext) {
|
||||
|
|
|
@ -438,7 +438,7 @@ void AngelScriptResolver::InitializeByteCode(
|
|||
_evolutionTypes.Set(val.first, type);
|
||||
}
|
||||
} else {
|
||||
THROW("Resolving unknown script category value: " << innerDb.first);
|
||||
THROW("Resolving unknown script category value: ", innerDb.first);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue