Skip to content

Commit

Permalink
Improved two error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre committed May 17, 2024
1 parent c519e15 commit ef38dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ ezc3d::ParametersNS::Parameters::Parameters(
// Check if we spontaneously got to the next parameter.
// Otherwise c3d is messed up
if (!ignoreBadFormatting && file.tellg() != nextParamByteInFile){
throw std::ios_base::failure("Bad c3d formatting");
throw std::ios_base::failure("The format is not standard. If you want to ignore this error, set ignoreBadFormatting to true");
}

// Nb of char in the group name, locked if negative,
Expand Down
2 changes: 1 addition & 1 deletion src/ezc3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ ezc3d::c3d::c3d(
c_int_tp = std::vector<char>(m_nByteToReadMax_int + 1);

if (!stream.is_open())
throw std::ios_base::failure("Could not open the c3d file");
throw std::ios_base::failure("The c3d file could not be opened, please verify the path");

// Read all the section
_header = std::shared_ptr<ezc3d::Header>(new ezc3d::Header(*this, stream));
Expand Down

0 comments on commit ef38dcb

Please sign in to comment.