Skip to content

Commit

Permalink
ENH: Improve error reporting in AngReader
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Sep 5, 2023
1 parent 05609fc commit 171658d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/EbsdLib/IO/TSL/AngReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ std::pair<int, std::string> AngReader::fixOrderOfData(std::vector<int64_t>& inde
if(std::nearbyint((yMax - yMin) / yStep) + 1 != numRows)
{
std::stringstream message;
message << "Error: The calculated number of rows " << yMax << ", " << yMin << ", " << yStep << " (" << ((yMax - yMin) / yStep) + 1 << ") does not match the actual number of rows (" << numRows + 1
message << "Error: The calculated number of rows YMax: " << yMax << ", YMin: " << yMin << ", YStep: " << yStep << " (" << ((yMax - yMin) / yStep) + 1 << ") does not match the actual number of rows (" << numRows + 1
<< ")" << std::endl;
return {-101101, message.str()};
}
Expand Down

0 comments on commit 171658d

Please sign in to comment.