mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-15 12:27:50 +00:00
Throw exception for unknown mote type
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user