mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
also log session-load error to stderr.
If the session fails to load, the editor and error-log window will never be visible.
This commit is contained in:
parent
10203b5517
commit
b66cc472e8
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue