Skip to content

Suppress error message when not finding libsmeardetectors#36

Merged
kkauder merged 3 commits into
masterfrom
suppresswarn
Dec 12, 2025
Merged

Suppress error message when not finding libsmeardetectors#36
kkauder merged 3 commits into
masterfrom
suppresswarn

Conversation

@kkauder

@kkauder kkauder commented Dec 11, 2025

Copy link
Copy Markdown
Collaborator

Briefly, what does this PR introduce?

See the issue. libeicsmeardetectors is no longer installed by default, so suppress the warning when we're not finding it.

What kind of change does this PR introduce?

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No

Does this PR change default behavior?

No

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #35 by suppressing error messages when the libeicsmeardetectors library is not found. Since this library is no longer installed by default, the warning message was unnecessarily alarming users. The fix temporarily raises the error ignore level to suppress the warning during library loading.

  • Suppresses error messages by temporarily setting gErrorIgnoreLevel to kFatal when attempting to load libeicsmeardetectors
  • Conditionally retrieves the library path only if the library was successfully loaded
  • Prevents confusing error output when the optional library is not present

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/eic-smear.cxx Outdated
Comment thread scripts/eic-smear.cxx
Comment thread scripts/eic-smear.cxx
Comment thread scripts/eic-smear.cxx
Comment thread scripts/eic-smear.cxx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@wdconinc wdconinc linked an issue Dec 11, 2025 that may be closed by this pull request
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@veprbl veprbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@kkauder kkauder merged commit 33f7a8a into master Dec 12, 2025
1 check passed
@kkauder kkauder deleted the suppresswarn branch December 12, 2025 16:08
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.

lib eicsmeardetectors

3 participants