Skip to content

Commit

Permalink
Merge pull request #322 from pariterre/dev
Browse files Browse the repository at this point in the history
Improved some error messages
  • Loading branch information
pariterre authored May 17, 2024
2 parents c519e15 + 4bfdb43 commit c2d25ac
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/run_codecoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:

- name: Print mamba info
run: |
mamba config --show
mamba info
mamba list
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/run_octave_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:

- name: Print mamba info
run: |
mamba config --show
mamba info
mamba list
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:

- name: Print mamba info
run: |
mamba config --show
mamba info
mamba list
Expand Down
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 c2d25ac

Please sign in to comment.