mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Throw exception for unknown mote type
This commit is contained in:
parent
50caa3650c
commit
3da733ac55
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user