Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/plugin/PiperVampPluginFactory.cpp Thu Oct 27 14:01:35 2016 +0100 +++ b/plugin/PiperVampPluginFactory.cpp Thu Oct 27 16:13:25 2016 +0100 @@ -158,6 +158,10 @@ errorMessage = QObject::tr ("External plugin host exited unexpectedly while listing plugins"); return; + } catch (const std::exception &e) { + errorMessage = QObject::tr("External plugin host invocation failed: %1") + .arg(e.what()); + return; } for (const auto &pd: lr.available) {