mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
output more stuff to the error channel if/when a session fails to load/be created
This commit is contained in:
parent
1f88b6d35f
commit
e25a4371cb
1 changed files with 7 additions and 0 deletions
|
|
@ -237,10 +237,12 @@ Session::post_engine_init ()
|
|||
setup_midi_machine_control ();
|
||||
|
||||
if (_butler->start_thread()) {
|
||||
error << _("Butler did not start") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (start_midi_thread ()) {
|
||||
error << _("MIDI I/O thread did not start") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -278,6 +280,7 @@ Session::post_engine_init ()
|
|||
|
||||
if (state_tree) {
|
||||
if (set_state (*state_tree->root(), Stateful::loading_state_version)) {
|
||||
error << _("Could not set session state from XML") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
} else {
|
||||
|
|
@ -344,7 +347,11 @@ Session::post_engine_init ()
|
|||
/* handle this one in a different way than all others, so that its clear what happened */
|
||||
error << err.what() << endmsg;
|
||||
return -1;
|
||||
} catch (std::exception const & e) {
|
||||
error << _("Unexpected exception during session setup: ") << e.what() << endmsg;
|
||||
return -1;
|
||||
} catch (...) {
|
||||
error << _("Unknown exception during session setup") << endmsg;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue