Throw exception for unknown mote type

This commit is contained in:
Niclas Finne 2012-05-23 15:19:19 +02:00
parent 50caa3650c
commit 3da733ac55

View file

@ -660,7 +660,7 @@ public class Simulation extends Observable implements Runnable {
if (moteTypeClass == null) {
logger.fatal("Could not load mote type class: " + moteTypeClassName);
return false;
throw new MoteType.MoteTypeCreationException("Could not load mote type class: " + moteTypeClassName);
}
MoteType moteType = moteTypeClass.getConstructor((Class[]) null).newInstance();