Commit 55f5436f authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

Reword error message

parent caf6e985
......@@ -172,8 +172,8 @@ Eigen::MatrixXi RawDataReader::data(size_t frame)
file.read(&_data[0], long(_length));
if (_length != size_t(file.gcount())) {
std::string err_msg = "LOL did not read " + filename + " successfully: ";
err_msg += "expected " + std::to_string(_length) + " bytes but read "
std::string err_msg = "cannot load file " + filename + ": ";
err_msg += "expected " + std::to_string(_length) + " bytes but found "
+ std::to_string(file.gcount());
throw std::runtime_error(err_msg);
}
......
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