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:
parent
3c2fdab1ce
commit
d9ec733c47
@ -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>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user