improved debugging output at referenceVar errors

This commit is contained in:
Fredrik Osterlind 2014-08-07 11:41:44 +02:00 committed by Enrico Joerns
parent 77d17196a7
commit b8d0b13ccf

View file

@ -491,7 +491,9 @@ public class ContikiMoteType implements MoteType {
int referenceVar = (int) varMem.getVariable("referenceVar").addr;
myCoreComm.setReferenceAddress(referenceVar);
} catch (UnknownVariableException e) {
throw new MoteTypeCreationException("JNI call error: " + e.getMessage(), e);
throw new MoteTypeCreationException("Error setting reference variable: " + e.getMessage(), e);
} catch (RuntimeException e) {
throw new MoteTypeCreationException("Error setting reference variable: " + e.getMessage(), e);
}
getCoreMemory(tmp);