Skip to content
Snippets Groups Projects
Commit ced78613 authored by Eric Cano's avatar Eric Cano
Browse files

Added diagnostic inforamation when failing to create an object.

parent 835583a2
No related branches found
No related tags found
No related merge requests found
......@@ -126,9 +126,9 @@ void BackendVFS::create(std::string name, std::string content) {
int fdLock = ::open(lockPath.c_str(), O_WRONLY | O_CREAT | O_EXCL, S_IRWXU | S_IRWXG | S_IRWXO);
lockCreated = true;
cta::exception::Errnum::throwOnMinusOne(fdLock,
"In ObjectStoreVFS::create, failed to creat the lock file");
std::string("In ObjectStoreVFS::create, failed to create the lock file: ") + name);
cta::exception::Errnum::throwOnMinusOne(::close(fdLock),
"In ObjectStoreVFS::create, failed to close the lock file");
std::string("In ObjectStoreVFS::create, failed to close the lock file: ") + name);
} catch (...) {
if (fileCreated) unlink(path.c_str());
if (lockCreated) unlink(lockPath.c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment