提交 b540a283 编写于 作者: A Adam Lee

s3ext: report error once an exception is caught

上级 047181a2
......@@ -15,6 +15,7 @@ S3ExtBase *CreateExtWrapper(const char *url) {
S3ExtBase *ret = new S3Reader(url);
return ret;
} catch (...) {
S3ERROR("Caught an exception, aborting");
return NULL;
}
}
......@@ -100,6 +101,7 @@ bool S3Reader::Init(int segid, int segnum, int chunksize) {
S3INFO("Got %d files to download", this->keylist->contents.size());
this->getNextDownloader();
} catch (...) {
S3ERROR("Caught an exception, aborting");
return false;
}
......@@ -183,6 +185,7 @@ bool S3Reader::TransferData(char *data, uint64_t &len) {
}
len = buflen;
} catch (...) {
S3ERROR("Caught an exception, aborting");
return false;
}
......@@ -203,6 +206,7 @@ bool S3Reader::Destroy() {
delete this->keylist;
}
} catch (...) {
S3ERROR("Caught an exception, aborting");
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册