Commit 64809ad7 authored by Steven Murray's avatar Steven Murray
Browse files

Replaced '<< ex.getMessage()' with '<< ex.getMessage().str()'

parent 15030ce4
......@@ -112,13 +112,13 @@ castor::tape::SCSI::Exception::Exception(
w << ": " << sense->getSenseKeyString();
} catch (Exception &ex) {
w << ": In addition, failed to get Sense Key string: "
<< ex.getMessage();
<< ex.getMessage().str();
}
try {
w << ": " << sense->getACSString();
} catch (Exception &ex) {
w << ": In addition, failed to get ACS string: "
<< ex.getMessage();
<< ex.getMessage().str();
}
}
setWhat(w.str());
......@@ -159,13 +159,13 @@ castor::tape::SCSI::DriverException::DriverException(
w << ": " << sense->getSenseKeyString();
} catch (Exception &ex) {
w << ": In addition, failed to get Sense Key string: "
<< ex.getMessage();
<< ex.getMessage().str();
}
try {
w << ": " << sense->getACSString();
} catch (Exception &ex) {
w << ": In addition, failed to get ACS string: "
<< ex.getMessage();
<< ex.getMessage().str();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment