Throw exception for unknown mote type
This commit is contained in:
parent
50caa3650c
commit
3da733ac55
1 changed files with 1 additions and 1 deletions
|
@ -660,7 +660,7 @@ public class Simulation extends Observable implements Runnable {
|
||||||
|
|
||||||
if (moteTypeClass == null) {
|
if (moteTypeClass == null) {
|
||||||
logger.fatal("Could not load mote type class: " + moteTypeClassName);
|
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();
|
MoteType moteType = moteTypeClass.getConstructor((Class[]) null).newInstance();
|
||||||
|
|
Loading…
Reference in a new issue