Skip to content

Commit 457d20e

Browse files
author
dfounderliu
committed
fix: tempSecret information
1 parent 3d6cd8c commit 457d20e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

serverless.component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: website
2-
version: 0.0.2
2+
version: 0.0.4
33
author: anycodes
44
org: anycodes
55
description: Deploys Tencent Website.

src/serverless.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Express extends Component {
4646
// 获取腾讯云密钥信息
4747
if (!this.credentials.tencent.tmpSecrets) {
4848
throw new Error(
49-
"Couldn't get your SecretId/Key, Please add SLS_QcsRole For Serverless Framework or Update Serverless Framework CLI(At least 1.67.3)"
49+
'Cannot get secretId/Key, your account could be sub-account or does not have access, please check if SLS_QcsRole role exists in your account, and visit https://console.cloud.tencent.com/cam to bind this role to your account.'
5050
)
5151
}
5252
const credentials = {
@@ -148,7 +148,7 @@ class Express extends Component {
148148
// 获取腾讯云密钥信息
149149
if (!this.credentials.tencent.tmpSecrets) {
150150
throw new Error(
151-
"Couldn't get your SecretId/Key, Please add SLS_QcsRole For Serverless Framework or Update Serverless Framework CLI(At least 1.67.3)"
151+
'Cannot get secretId/Key, your account could be sub-account or does not have access, please check if SLS_QcsRole role exists in your account, and visit https://console.cloud.tencent.com/cam to bind this role to your account.'
152152
)
153153
}
154154
const credentials = {

0 commit comments

Comments
 (0)