@cloudbase/manager-node 4.4.7 → 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.
@@ -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
- console.error(`函数创建失败信息: ${errorDetails}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "4.4.7",
3
+ "version": "4.4.8",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -121,6 +121,7 @@ export interface IFunctionInfo {
121
121
  ErrorCode: string;
122
122
  ErrorMessage: string;
123
123
  }[];
124
+ RequestId: string;
124
125
  }
125
126
  export interface IFunctionCode {
126
127
  CosBucketName?: string;