fix(测试跟踪): jira校验提示优化
--bug=1010309 --user=陈建星 【个人信息】第三方平台账户,jira校验失败提示信息优化 https://www.tapd.cn/55049933/s/1106747
This commit is contained in:
parent
7af02fb059
commit
7da2e7897c
|
@ -173,6 +173,13 @@ public abstract class JiraAbstractClient extends BaseClient {
|
|||
public void auth() {
|
||||
try {
|
||||
restTemplate.exchange(getBaseUrl() + "/myself", HttpMethod.GET, getAuthHttpEntity(), String.class);
|
||||
} catch (HttpClientErrorException e) {
|
||||
if (e.getRawStatusCode() == 401) {
|
||||
MSException.throwException(Translator.get("jira_auth_error"));
|
||||
} else {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
MSException.throwException(e.getMessage());
|
||||
}
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e.getMessage(), e);
|
||||
MSException.throwException(e.getMessage());
|
||||
|
|
|
@ -74,4 +74,5 @@ invalid_parameter=
|
|||
workspace_template_settings_issue=
|
||||
zentao_test_type_error=
|
||||
issue_jira_info_error=
|
||||
case_status_not_exist=
|
||||
case_status_not_exist=
|
||||
jira_auth_error=
|
||||
|
|
|
@ -305,4 +305,5 @@ error_report_library=Error report
|
|||
issue_jira_info_error=Check the service integration information or Jira project ID
|
||||
error_code_is_unique=Error code is not unique
|
||||
|
||||
no_version_exists=version not exists
|
||||
no_version_exists=version not exists
|
||||
jira_auth_error=Account name or password (Token) is wrong
|
||||
|
|
|
@ -304,3 +304,4 @@ error_report_library=误报库
|
|||
issue_jira_info_error=请检查服务集成信息或Jira项目ID
|
||||
error_code_is_unique=错误代码不可重复
|
||||
no_version_exists=不存在版本!请先创建项目的版本
|
||||
jira_auth_error=账号名或密码(Token)错误
|
||||
|
|
|
@ -304,4 +304,5 @@ error_report_library=誤報庫
|
|||
issue_jira_info_error=請檢查服務集成信息或Jira項目ID
|
||||
error_code_is_unique=錯誤代碼不可重複
|
||||
|
||||
no_version_exists=不存在版本!請先創建項目的版本
|
||||
no_version_exists=不存在版本!請先創建項目的版本
|
||||
jira_auth_error=賬號名或密碼(Token)錯誤
|
||||
|
|
Loading…
Reference in New Issue