From ef38dcbbbfee1c4158e6572047678a7f4e1f1f80 Mon Sep 17 00:00:00 2001 From: Pariterre Date: Fri, 17 May 2024 14:43:15 -0400 Subject: [PATCH 1/2] Improved two error messages --- src/Parameters.cpp | 2 +- src/ezc3d.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parameters.cpp b/src/Parameters.cpp index e3c1c546..59e72acf 100644 --- a/src/Parameters.cpp +++ b/src/Parameters.cpp @@ -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, diff --git a/src/ezc3d.cpp b/src/ezc3d.cpp index 22a89635..f73bbad7 100644 --- a/src/ezc3d.cpp +++ b/src/ezc3d.cpp @@ -61,7 +61,7 @@ ezc3d::c3d::c3d( c_int_tp = std::vector(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(new ezc3d::Header(*this, stream)); From 4bfdb43aa64650e3d428a51c3cda5cdf63079d62 Mon Sep 17 00:00:00 2001 From: Pariterre Date: Fri, 17 May 2024 14:45:46 -0400 Subject: [PATCH 2/2] Removed a config in mamba which does not exist anymore --- .github/workflows/run_codecoverage.yml | 1 - .github/workflows/run_octave_tests.yml | 1 - .github/workflows/run_tests.yml | 1 - 3 files changed, 3 deletions(-) diff --git a/.github/workflows/run_codecoverage.yml b/.github/workflows/run_codecoverage.yml index 7dff86b2..b7e8cfec 100644 --- a/.github/workflows/run_codecoverage.yml +++ b/.github/workflows/run_codecoverage.yml @@ -37,7 +37,6 @@ jobs: - name: Print mamba info run: | - mamba config --show mamba info mamba list diff --git a/.github/workflows/run_octave_tests.yml b/.github/workflows/run_octave_tests.yml index 21e9bba5..7db171c5 100644 --- a/.github/workflows/run_octave_tests.yml +++ b/.github/workflows/run_octave_tests.yml @@ -38,7 +38,6 @@ jobs: - name: Print mamba info run: | - mamba config --show mamba info mamba list diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 7000cbe1..9e220220 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -43,7 +43,6 @@ jobs: - name: Print mamba info run: | - mamba config --show mamba info mamba list