我正在运行一个 azure 存储程序。
https://www.windowsazure.com/en-us/develop/nodejs/tutorials/web-site-with-storage/
当我运行应用程序时,我收到一个错误:
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)
从代码中可以看出:
this.storageClient.createTableIfNotExists(tableName,
function tableCreated(err) {
if(err) {
throw error;
我安装了 azure 但仍然收到此错误..任何建议可能是此错误的原因