I am running a azure storage program.
https://www.windowsazure.com/en-us/develop/nodejs/tutorials/web-site-with-storage/
When I am running the application I am getting an error:
C:\node\Azuretablestorage2\models\task.js:16
throw error;
^
ReferenceError: error is not defined
at tableCreated (C:\node\Azuretablestorage2\models\task.js:16:15)
at C:\node\Azuretablestorage2\node_modules\azure\lib\services\table\tableservice.js:268:5
at C:\node\Azuretablestorage2\node_modules\azure\lib\services\table\tableservice.js:235:7
at C:\node\Azuretablestorage2\node_modules\azure\lib\services\core\serviceclient.js:534:11
at C:\node\Azuretablestorage2\node_modules\azure\lib\services\table\tableservice.js:238:5
at Request._callback (C:\node\Azuretablestorage2\node_modules\azure\lib\services\core\serviceclient.js:197
at C:\node\Azuretablestorage2\node_modules\azure\node_modules\request\main.js:122:22
at Request.<anonymous> (native)
From the code it is from:
this.storageClient.createTableIfNotExists(tableName,
function tableCreated(err) {
if(err) {
throw error;
I have azure installed but stil getting this Error ..any suggestions what could be the reason for this error
Looks like that code is buggy. It should probably read
throw err;. Once you’re throwing the real error, you’ll be able to see what the problem is (why you’re getting an error in the first place.)