feat: 完善 License 导入错误显示 (#4297)

pull/4301/head
ssongliu 8 months ago committed by GitHub
parent ba6991bfb6
commit 6c67dc6ed4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,6 +18,8 @@ const (
CodeErrDomain = 409 CodeErrDomain = 409
CodeErrInternalServer = 500 CodeErrInternalServer = 500
CodeErrHeader = 406 CodeErrHeader = 406
CodeErrXpack = 410
) )
// internal // internal

@ -174,7 +174,7 @@ ErrRuleExist: "Rule is Exist"
ErrRuleNotExist: "Rule is not Exist" ErrRuleNotExist: "Rule is not Exist"
#license #license
ErrLicense: "License format error, please re-import!" ErrLicense: "License format error, {{ .err }}, please re-import!"
ErrLicenseCheckInLocal: "Local license check failed, error {{ .err }}, please try again!" ErrLicenseCheckInLocal: "Local license check failed, error {{ .err }}, please try again!"
ErrLicenseCheckInRemote: "Remote license check failed, error {{ .err }}, please try again!" ErrLicenseCheckInRemote: "Remote license check failed, error {{ .err }}, please try again!"
ErrLicenseSave: "Failed to save license information, error {{ .err }}, please try again!" ErrLicenseSave: "Failed to save license information, error {{ .err }}, please try again!"

@ -175,7 +175,7 @@ ErrRuleExist: "規則名稱已存在"
ErrRuleNotExist: "規則不存在" ErrRuleNotExist: "規則不存在"
#license #license
ErrLicense: "License 格式錯誤,請重新匯入!" ErrLicense: "License 格式錯誤,{{ .err }}請重新匯入!"
ErrLicenseCheckInLocal: "License 本地校驗失敗,錯誤 {{ .err }},請重試!" ErrLicenseCheckInLocal: "License 本地校驗失敗,錯誤 {{ .err }},請重試!"
ErrLicenseCheckInRemote: "License 遠程校驗失敗,錯誤 {{ .err }},請重試!" ErrLicenseCheckInRemote: "License 遠程校驗失敗,錯誤 {{ .err }},請重試!"
ErrLicenseSave: "License 資訊保存失敗,錯誤 {{ .err }},請重試!" ErrLicenseSave: "License 資訊保存失敗,錯誤 {{ .err }},請重試!"

@ -174,7 +174,7 @@ ErrRuleExist: "规则名称已存在"
ErrRuleNotExist: "规则不存在" ErrRuleNotExist: "规则不存在"
#license #license
ErrLicense: "License 格式错误,请重新导入!" ErrLicense: "License 格式错误,{{ .err }}请重新导入!"
ErrLicenseCheckInLocal: "License 本地校验失败,错误 {{ .err }},请重试!" ErrLicenseCheckInLocal: "License 本地校验失败,错误 {{ .err }},请重试!"
ErrLicenseCheckInRemote: "License 远程校验失败,错误 {{ .err }},请重试!" ErrLicenseCheckInRemote: "License 远程校验失败,错误 {{ .err }},请重试!"
ErrLicenseSave: "License 信息保存失败,错误 {{ .err }},请重试!" ErrLicenseSave: "License 信息保存失败,错误 {{ .err }},请重试!"

Loading…
Cancel
Save