summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-09-28 11:27:47 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-09-28 11:28:45 -0500
commite25a4371cbc7faca0661bd7d85cef6ab1c2c8e69 (patch)
tree45bcbfa855927ec51ff0d1699b1a153c5e20bfac /libs
parent1f88b6d35fcbe9674c82fea26cb2260789f0ed14 (diff)
output more stuff to the error channel if/when a session fails to load/be created
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/session_state.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 14de04163c..d27d963646 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -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;
}