Merge remote-tracking branch 'origin/v1.0' into v1.0

This commit is contained in:
q4speed 2020-06-17 14:43:13 +08:00
commit c65333b0d6
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,12 @@ public class DockerTestEngine extends AbstractEngine {
testRequest.setTestData(context.getTestData());
testRequest.setEnv(context.getEnv());
restTemplate.postForObject(uri, testRequest, String.class);
try {
restTemplate.postForObject(uri, testRequest, String.class);
} catch (Exception e) {
LogUtil.error(e);
MSException.throwException(Translator.get("load_test_kafka_invalid"));
}
}
@Override