Skip to content

Convert assert calls to error logs (NGWPC-7474)#1

Merged
cmaynard-ngwpc merged 2 commits into
developmentfrom
ewts-message-on-update-asserts
Aug 27, 2025
Merged

Convert assert calls to error logs (NGWPC-7474)#1
cmaynard-ngwpc merged 2 commits into
developmentfrom
ewts-message-on-update-asserts

Conversation

@idtodd
Copy link
Copy Markdown

@idtodd idtodd commented Aug 25, 2025

Convert assert calls that will give unhelpful error messages to error messages that will be logged through the Logger followed by exception throws.

@idtodd idtodd changed the base branch from master to development August 25, 2025 19:31
@idtodd idtodd self-assigned this Aug 25, 2025
@idtodd idtodd requested a review from cmaynard-ngwpc August 25, 2025 19:54
Copy link
Copy Markdown

@cmaynard-ngwpc cmaynard-ngwpc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built fine and the code looks good. Note you could have taken advantage of the overloaded Log method using varargs, LOG(LogLevel messageLevel, const char* message, ...);, instead of creating a std:stringstream to build each of the error messages.

Tested running ngen with lasam and noah-owp-modular with 2 different gages.

@cmaynard-ngwpc cmaynard-ngwpc merged commit 889ebef into development Aug 27, 2025
0 of 5 checks passed
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.

2 participants