Skip to content

Commit

Permalink
print erroneous line when reading stitch file
Browse files Browse the repository at this point in the history
  • Loading branch information
ixchow committed Apr 23, 2024
1 parent ef88eac commit 709f0df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bool load_stitches(std::string const &filename, std::vector< Stitch > *into_) {
int32_t out[2];

if (!(iss >> temp.yarn >> temp.type >> temp.direction >> in[0] >> in[1] >> out[0] >> out[1] >> temp.at.x >> temp.at.y >> temp.at.z)) {
std::cerr << "ERROR: Failed to read stitch." << std::endl;
std::cerr << "ERROR: Failed to read stitch from '" << line << "'" << std::endl;
return false;
}
temp.in[0] = in[0];
Expand Down

0 comments on commit 709f0df

Please sign in to comment.