diff --git a/Sources/JavaScript/nodejs/adapter.js b/Sources/JavaScript/nodejs/adapter.js index 3703bcd..9b13344 100644 --- a/Sources/JavaScript/nodejs/adapter.js +++ b/Sources/JavaScript/nodejs/adapter.js @@ -53,7 +53,7 @@ exports.readProperty = function (property, done){ exports.writeProperty = function (property, value, done){ if ( typeof property.write === 'undefined' ){ - throw new exceptions.WoopsaInvalidOperationException("Cannot write to read-only property " + element.getName()); + throw new exceptions.WoopsaInvalidOperationException("Cannot write to read-only property " + property.getName()); }else{ value = woopsaUtils.convertTo(value, property.getType()) property.write(value, function (writeResult){ @@ -97,4 +97,4 @@ function processArguments(method, methodArguments){ throw new exceptions.WoopsaInvalidOperationException("Wrong parameters for WoopsaMethod " + method.getName()); } return args; -} \ No newline at end of file +}