Use Arbutils exception Macros, instead of own ones.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-17 12:18:01 +02:00
parent 9d5316edff
commit 98dacbccde
20 changed files with 44 additions and 60 deletions

View File

@@ -133,7 +133,7 @@ TEST_CASE("Script Aggregator properly iterates when empty.", "[Battling, Scripti
auto vec = ArbUt::List<ScriptWrapper>{};
auto aggr = ScriptAggregator(vec);
while (aggr.HasNext()) {
THROW_CREATURE("Aggregator returned a script, but should have been empty.");
THROW("Aggregator returned a script, but should have been empty.");
}
CHECK(ran == 0);
}

View File

@@ -7,7 +7,7 @@
TEST_CASE("When throwing exception, what() is readable", "[Utilities][Exception]") {
bool hasCaught = false;
try {
THROW_CREATURE("foobar");
THROW("foobar");
} catch (const ArbUt::Exception& e) {
hasCaught = true;
INFO(e.what());