13
0

Dump XML node if loading a source fails

This helps to debug issues, in case this comes up in a session
with many sources.
This commit is contained in:
Robin Gareus 2022-02-03 21:54:15 +01:00
parent 3c2fdab1ce
commit d9ec733c47
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -2585,6 +2585,7 @@ Session::XMLSourceFactory (const XMLNode& node)
catch (failed_constructor& err) { catch (failed_constructor& err) {
error << string_compose (_("Found a sound file that cannot be used by %1. Talk to the programmers."), PROGRAM_NAME) << endmsg; error << string_compose (_("Found a sound file that cannot be used by %1. Talk to the programmers."), PROGRAM_NAME) << endmsg;
node.dump (std::cout, " Invalid Source: ");
return boost::shared_ptr<Source>(); return boost::shared_ptr<Source>();
} }
} }