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

Co-authored-by: xuhaihui <xuhaihui@cmss.chinamobile.com>
This commit is contained in:
xuhhui 2023-03-21 09:58:24 +08:00 committed by GitHub
parent 1ac76e1cbb
commit 1075be6e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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