replaced System.exit with throwing RuntimeException

master
melvin 2011-07-21 11:25:24 +08:00
parent 687a8a9bc2
commit 20b44068a6
1 changed files with 2 additions and 2 deletions

View File

@ -216,8 +216,8 @@ public class MagicCardDefinition {
final MagicLocalVariable lvar = (MagicLocalVariable)obj;
addLocalVariable(lvar);
} else {
System.err.println("Unknown object");
System.exit(1);
System.err.println("ERROR! Unable to add object to MagicCardDefinition");
throw new RuntimeException("Unknown field in companion object");
}
}