replaced System.exit with throwing RuntimeException
parent
687a8a9bc2
commit
20b44068a6
|
@ -216,8 +216,8 @@ public class MagicCardDefinition {
|
||||||
final MagicLocalVariable lvar = (MagicLocalVariable)obj;
|
final MagicLocalVariable lvar = (MagicLocalVariable)obj;
|
||||||
addLocalVariable(lvar);
|
addLocalVariable(lvar);
|
||||||
} else {
|
} else {
|
||||||
System.err.println("Unknown object");
|
System.err.println("ERROR! Unable to add object to MagicCardDefinition");
|
||||||
System.exit(1);
|
throw new RuntimeException("Unknown field in companion object");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue