Skip to content
Snippets Groups Projects
Commit 030e70d7 authored by Steven Murray's avatar Steven Murray
Browse files

Replaced readStatus.ToString() with GetErrorMessage()

parent e4fa93b8
Branches
Tags
No related merge requests found
......@@ -161,8 +161,7 @@ int sendCommand(const int argc, const char **argv) {
memset(buf, 0, sizeof(buf));
const XrdCl::XRootDStatus readStatus = xrootFile.Read(readOffset, sizeof(buf - 1), buf, bytesRead);
if(!readStatus.IsOK()) {
//throw std::runtime_error(std::string("Failed to read ") + cmdPath + ": " + readStatus.GetErrorMessage());
throw std::runtime_error(std::string("Failed to read ") + cmdPath + ": " + readStatus.ToString());
throw std::runtime_error(std::string("Failed to read ") + cmdPath + ": " + readStatus.GetErrorMessage());
}
if(bytesRead > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment