This is an automated email from the ASF dual-hosted git repository.
caishunfeng pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 1075be6e62 [Improvement] Test DataSource connection return msg may not
internationalization (#13767)
1075be6e62 is described below
commit 1075be6e62a4aae65682f2b4db0e38b16006e1af
Author: xuhhui <[email protected]>
AuthorDate: Tue Mar 21 09:58:24 2023 +0800
[Improvement] Test DataSource connection return msg may not
internationalization (#13767)
Co-authored-by: xuhaihui <[email protected]>
---
.../apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java
index e7df5f39e5..6f5c8e5eca 100644
---
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java
+++
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java
@@ -400,7 +400,7 @@ public class DataSourceServiceImpl extends BaseServiceImpl
implements DataSource
.orElse(e.getMessage());
log.error("Datasource test connection error, dbType:{},
connectionParam:{}, message:{}.", type,
connectionParam, message);
- return new Result<>(Status.CONNECTION_TEST_FAILURE.getCode(),
message);
+ return new Result<>(Status.CONNECTION_TEST_FAILURE);
}
}