Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_plugins: Preserve original exception with failure information #2057

Conversation

jrohel
Copy link
Contributor

@jrohel jrohel commented Feb 12, 2025

Closes: #1336

The original implementation threw an exception with a list of plugins that failed to load. We usually got the name of one configuration file. Information about the reason for the failure was not included in the exception.

Now the code throws an exception for the first failed plugin. Exception contains the full path (not just the filename) and includes the original exception from the source of the error.

The original implementation threw an exception with a list of plugins
that failed to load. We usually got the name of one configuration file.
Information about the reason for the failure was not included
in the exception.

Now the code throws an exception for the first failed plugin. Exception
contains the full path (not just the filename) and includes the original
exception from the source of the error.
@kontura kontura self-assigned this Feb 13, 2025
@kontura
Copy link
Contributor

kontura commented Feb 13, 2025

I like it, thank you!

@kontura kontura added this pull request to the merge queue Feb 13, 2025
Merged via the queue into rpm-software-management:main with commit 2dfb6e0 Feb 13, 2025
21 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.

libdnf5 plugins: vague error message while further dnf5 actions are blocked
2 participants