From 295414e691d90c4b2af51142e26a31c6ba1fb823 Mon Sep 17 00:00:00 2001 From: Dmitry Dudin Date: Sun, 23 Jan 2022 00:34:02 +0700 Subject: [PATCH] Update adapter.js --- Sources/JavaScript/nodejs/adapter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}