|
@@ -78,7 +78,16 @@ std::string module::aliyun_oss::updata(
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- return_msg = "put object from buffer failed,code:" + std::to_string(s->code) + ",error_code:" + s->error_code + ",error_msg:" + s->error_msg;
|
|
|
|
|
|
|
+ return_msg = "exec failed";
|
|
|
|
|
+ if(s->code != NULL){
|
|
|
|
|
+ return_msg += ",code:"+ std::to_string(s->code);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(s->error_code != NULL){
|
|
|
|
|
+ return_msg += ",error_code:"+ std::to_string(s->error_code);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(s->error_msg != NULL){
|
|
|
|
|
+ return_msg += ",error_msg:"+ std::to_string(s->error_code);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -127,7 +136,16 @@ std::string module::aliyun_oss::upfile(const std::string& endpoint, const std::s
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- return_msg = "put object from file failed,code:" + std::to_string(s->code) + ",error_code:" + s->error_code + ",error_msg:" + s->error_msg;
|
|
|
|
|
|
|
+ return_msg = "exec failed";
|
|
|
|
|
+ if(s->code != NULL){
|
|
|
|
|
+ return_msg += ",code:"+ std::to_string(s->code);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(s->error_code != NULL){
|
|
|
|
|
+ return_msg += ",error_code:"+ std::to_string(s->error_code);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(s->error_msg != NULL){
|
|
|
|
|
+ return_msg += ",error_msg:"+ std::to_string(s->error_code);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
aos_pool_destroy(p);
|
|
aos_pool_destroy(p);
|
|
@@ -169,7 +187,16 @@ std::string module::aliyun_oss::del(const std::string& endpoint, const std::stri
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
else {
|
|
else {
|
|
|
- return_msg = "delete object failed,code:" + std::to_string(s->code) + ",error_code:" + s->error_code + ",error_msg:" + s->error_msg;
|
|
|
|
|
|
|
+ return_msg = "exec failed";
|
|
|
|
|
+ if(s->code != NULL){
|
|
|
|
|
+ return_msg += ",code:"+ std::to_string(s->code);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(s->error_code != NULL){
|
|
|
|
|
+ return_msg += ",error_code:"+ std::to_string(s->error_code);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(s->error_msg != NULL){
|
|
|
|
|
+ return_msg += ",error_msg:"+ std::to_string(s->error_code);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
aos_pool_destroy(p);
|
|
aos_pool_destroy(p);
|