Browse Source

[Improvement] Test DataSource connection return msg may not internationalization (#13767)

Co-authored-by: xuhaihui <xuhaihui@cmss.chinamobile.com>
3.2.0-release
xuhhui 1 year ago committed by GitHub
parent
commit
1075be6e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java

2
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);
}
}

Loading…
Cancel
Save