If a backend is not returning AudioBackend::ErrorCode values to indicate the
type of error then the default string will be returned which is the same as
what was previously displayed.
if (AudioEngine::instance()->start ()) {
// TODO somehow make this the topmost window (above any dialogs currently visible)
if (editor) {
- MessageDialog msg (*editor, _("Could not reconnect to the Audio/MIDI engine"));
+ MessageDialog msg (*editor, AudioEngine::instance()->get_last_backend_error ());
msg.run ();
} else {
- MessageDialog msg (_("Could not reconnect to the Audio/MIDI engine"));
+ MessageDialog msg (AudioEngine::instance()->get_last_backend_error ());
msg.run ();
}
return -1;