provide more information when error occurs

This commit is contained in:
zhangzifa
2019-02-26 17:25:39 +08:00
committed by Jackson Tian
parent f877a9ef39
commit 33a44c856d
9 changed files with 163 additions and 24 deletions

View File

@@ -19,7 +19,7 @@ namespace {
ClientConfiguration configuration("cn-shanghai");
CommonClient client(key, secret, configuration);
// 创建API请求并设置参数
// create request and assign parameters
CommonRequest request(CommonRequest::RoaPattern);
request.setScheme("http");
request.setDomain("nlp.cn-shanghai.aliyuncs.com");
@@ -46,7 +46,7 @@ namespace {
ClientConfiguration configuration("cn-shanghai");
CommonClient client(key, secret, configuration);
// 创建API请求并设置参数
// create request and assign parameters
CommonRequest request(CommonRequest::RoaPattern);
request.setScheme("http");
request.setDomain("nlp.cn-shanghai.aliyuncs.com");