Skip to content

Fix missing whitespace in log_M size mismatch error message - #1346

Merged
Andrea-Havron-NOAA merged 2 commits into
dev-fix_nlengthsfrom
copilot/sub-pr-1321
Mar 23, 2026
Merged

Fix missing whitespace in log_M size mismatch error message#1346
Andrea-Havron-NOAA merged 2 commits into
dev-fix_nlengthsfrom
copilot/sub-pr-1321

Conversation

Copilot AI commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Adjacent string literals in the throw std::invalid_argument call were concatenated without a space, producing an unreadable message like "mismatch.Population log_M is of size...".

Change

  • Added trailing space to the first string fragment in rcpp_population.hpp so the message reads "Population log_M size mismatch. Population log_M is of size ...".
// Before
"Population log_M size mismatch."
"Population log_M is of size " + ...

// After
"Population log_M size mismatch. "
"Population log_M is of size " + ...

Existing test regexp "Population log_M size mismatch" continues to match without modification.


⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

Co-authored-by: Andrea-Havron-NOAA <85530309+Andrea-Havron-NOAA@users.noreply.github.com>
Agent-Logs-Url: https://github.com/NOAA-FIMS/FIMS/sessions/a7489e2b-9488-42b1-ba55-ff062157642f
Copilot AI changed the title [WIP] [WIP] Address feedback on scalar log_M handling in catch-at-age output Fix missing whitespace in log_M size mismatch error message Mar 23, 2026
@Andrea-Havron-NOAA
Andrea-Havron-NOAA marked this pull request as ready for review March 23, 2026 17:50
@Andrea-Havron-NOAA
Andrea-Havron-NOAA merged commit 59d4150 into dev-fix_nlengths Mar 23, 2026
5 of 8 checks passed
@Andrea-Havron-NOAA
Andrea-Havron-NOAA deleted the copilot/sub-pr-1321 branch March 23, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants