@cloudbase/manager-node 4.4.7-beta.0 → 4.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/function/index.js
CHANGED
|
@@ -995,7 +995,7 @@ class FunctionService {
|
|
|
995
995
|
}, 300000);
|
|
996
996
|
ticker = setInterval(async () => {
|
|
997
997
|
try {
|
|
998
|
-
const { Status, StatusDesc, StatusReasons } = await this.getFunctionDetail(funcName, codeSecret);
|
|
998
|
+
const { Status, StatusDesc, StatusReasons, RequestId } = await this.getFunctionDetail(funcName, codeSecret);
|
|
999
999
|
// 更新中
|
|
1000
1000
|
if (Status === constant_1.SCF_STATUS.CREATING || Status === constant_1.SCF_STATUS.UPDATING)
|
|
1001
1001
|
return;
|
|
@@ -1003,8 +1003,7 @@ class FunctionService {
|
|
|
1003
1003
|
if (Status === constant_1.SCF_STATUS.CREATE_FAILED) {
|
|
1004
1004
|
StatusDesc && console.log(`函数状态描述: ${StatusDesc}`);
|
|
1005
1005
|
const errorDetails = StatusReasons.map(item => `[${item.ErrorCode}] ${item.ErrorMessage}`).join('\n');
|
|
1006
|
-
|
|
1007
|
-
throw new error_1.CloudBaseError('云函数创建失败');
|
|
1006
|
+
throw new error_1.CloudBaseError(`云函数创建失败\n失败信息: ${errorDetails}\nRequestId: ${RequestId}`);
|
|
1008
1007
|
}
|
|
1009
1008
|
// 函数状态正常
|
|
1010
1009
|
clearInterval(ticker);
|
package/package.json
CHANGED