diff options
author | Robin Gareus <robin@gareus.org> | 2015-06-19 22:54:22 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-06-19 22:54:22 +0200 |
commit | b66cc472e85f9816e8640a3828221fc7f213b2ce (patch) | |
tree | cf65b8cc6f3c703ec7cc6612802fd4313e6569e1 | |
parent | 10203b55172a5042173180189fa3807714721626 (diff) |
also log session-load error to stderr.
If the session fails to load, the editor and error-log window will
never be visible.
-rw-r--r-- | libs/ardour/tempo.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index b9ad1be682..244c050834 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -1737,11 +1737,13 @@ TempoMap::set_state (const XMLNode& node, int /*version*/) if (prev != metrics.end()) { if (dynamic_cast<MeterSection*>(*prev) && dynamic_cast<MeterSection*>(*i)) { if ((*prev)->start() == (*i)->start()) { + cerr << string_compose (_("Multiple meter definitions found at %1"), (*prev)->start()) << endmsg; error << string_compose (_("Multiple meter definitions found at %1"), (*prev)->start()) << endmsg; return -1; } } else if (dynamic_cast<TempoSection*>(*prev) && dynamic_cast<TempoSection*>(*i)) { if ((*prev)->start() == (*i)->start()) { + cerr << string_compose (_("Multiple tempo definitions found at %1"), (*prev)->start()) << endmsg; error << string_compose (_("Multiple tempo definitions found at %1"), (*prev)->start()) << endmsg; return -1; } |