throw RuntimeException if unable to parse cost test

master
melvin 2011-11-21 14:22:56 +08:00
parent fe2f689b61
commit 337758a34d
1 changed files with 1 additions and 2 deletions

View File

@ -124,7 +124,6 @@ public class MagicManaCost {
String text=costText;
boolean ok=true;
while (ok&&text.length()>0) {
ok=false;
final Matcher matcher=PATTERN.matcher(text);
if (matcher.matches()) {
@ -136,7 +135,7 @@ public class MagicManaCost {
}
}
if (!ok) {
System.err.println("Invalid cost : "+costText);
throw new RuntimeException("Invalid cost " + costText);
}
buildIcons();