Skip to content

[io] Add error message in TFile::Open if LoadPlugin fails#22796

Open
silverweed wants to merge 1 commit into
root-project:masterfrom
silverweed:loadplugin_err
Open

[io] Add error message in TFile::Open if LoadPlugin fails#22796
silverweed wants to merge 1 commit into
root-project:masterfrom
silverweed:loadplugin_err

Conversation

@silverweed

@silverweed silverweed commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This makes some failures more understandable, e.g. if you try to open a remote file with a version of root that has no xrootd support. It's not a great error, but at least it directs you closer to the cause of the error.
Practical example:

Before the change:

$ rootcp --recreate root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root copy_remote.root
Error in <rootcp>: Failed to open file 'root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root'

After the change:

$ rootcp --recreate root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root copy_remote.root 
Error in <TPluginHandler::LoadPluginImpl>: Failed to load plugin NetxNG
Error in <TPluginHandler::LoadPluginImpl>: Failed to load plugin NetxNG
Error in <rootcp>: Failed to open file 'root://eospublic.cern.ch//eos/root-eos/h1/dstarmb.root'

@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 10h 34m 29s ⏱️
 3 872 tests  3 870 ✅ 0 💤 2 ❌
76 203 runs  76 201 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit ef83c19.

♻️ This comment has been updated with latest results.

@silverweed silverweed changed the title [core] Add error message if LoadPlugin fails [io] Add error message in TFile::Open if LoadPlugin fails Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant