# HG changeset patch # User Chris Cannam # Date 1477581205 -3600 # Node ID 7f4230e7d83a911dd0e92c34ced6443509e642b0 # Parent 2d9e2771805a28864390d75e03a1a214348b08a6 Error handling diff -r 2d9e2771805a -r 7f4230e7d83a plugin/PiperVampPluginFactory.cpp --- 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) {