Commit ff7a8f99 authored by Anthony Calosa's avatar Anthony Calosa

prevent waiting for opponent during assert,

send the exception via sentry
parent ecbc2f95
......@@ -616,7 +616,9 @@ public class AiController {
}
catch (IllegalArgumentException ex) {
System.err.println(ex.getMessage());
ComparatorUtil.verifyTransitivity(saComparator, all);
String assertex = ComparatorUtil.verifyTransitivity(saComparator, all);
if (!assertex.isEmpty())
Sentry.capture(ex.getMessage() + "\nAssertionError [verifyTransitivity]: " + assertex);
}
for (final SpellAbility sa : ComputerUtilAbility.getOriginalAndAltCostAbilities(all, player)) {
......@@ -1585,7 +1587,9 @@ public class AiController {
}
catch (IllegalArgumentException ex) {
System.err.println(ex.getMessage());
ComparatorUtil.verifyTransitivity(saComparator, all);
String assertex = ComparatorUtil.verifyTransitivity(saComparator, all);
if (!assertex.isEmpty())
Sentry.capture(ex.getMessage() + "\nAssertionError [verifyTransitivity]: " + assertex);
}
for (final SpellAbility sa : ComputerUtilAbility.getOriginalAndAltCostAbilities(all, player)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment