comparison plugin/PiperVampPluginFactory.cpp @ 1235:7f4230e7d83a project-file-rework

Error handling
author Chris Cannam
date Thu, 27 Oct 2016 16:13:25 +0100
parents 2d9e2771805a
children fe391a7b8376
comparison
equal deleted inserted replaced
1234:2d9e2771805a 1235:7f4230e7d83a
156 lr = client.listPluginData(); 156 lr = client.listPluginData();
157 } catch (piper_vamp::client::ServerCrashed) { 157 } catch (piper_vamp::client::ServerCrashed) {
158 errorMessage = QObject::tr 158 errorMessage = QObject::tr
159 ("External plugin host exited unexpectedly while listing plugins"); 159 ("External plugin host exited unexpectedly while listing plugins");
160 return; 160 return;
161 } catch (const std::exception &e) {
162 errorMessage = QObject::tr("External plugin host invocation failed: %1")
163 .arg(e.what());
164 return;
161 } 165 }
162 166
163 for (const auto &pd: lr.available) { 167 for (const auto &pd: lr.available) {
164 168
165 QString identifier = 169 QString identifier =