catch exception during loading of card abilities so we can report the card name

master
melvin 2013-10-30 17:29:34 +08:00
parent 043f0dbf98
commit 5430402d17
1 changed files with 5 additions and 1 deletions

View File

@ -172,7 +172,11 @@ public class CardDefinitions {
executor.execute(new Runnable() {
@Override
public void run() {
cdef.loadAbilities();
try {
cdef.loadAbilities();
} catch (Throwable cause) {
throw new RuntimeException("Unable to load " + cdef, cause);
}
}
});
}