# HG changeset patch # User Chris Cannam # Date 1477573295 -3600 # Node ID 2d9e2771805a28864390d75e03a1a214348b08a6 # Parent fac1666e429b00ff74d3afc9b625b7e1d441970c Error handling diff -r fac1666e429b -r 2d9e2771805a plugin/PiperVampPluginFactory.cpp --- a/plugin/PiperVampPluginFactory.cpp Thu Oct 27 12:06:14 2016 +0100 +++ b/plugin/PiperVampPluginFactory.cpp Thu Oct 27 14:01:35 2016 +0100 @@ -148,9 +148,17 @@ errorMessage = QObject::tr("Could not start external plugin host"); return; } - + piper_vamp::client::CapnpRRClient client(&transport); - piper_vamp::ListResponse lr = client.listPluginData(); + piper_vamp::ListResponse lr; + + try { + lr = client.listPluginData(); + } catch (piper_vamp::client::ServerCrashed) { + errorMessage = QObject::tr + ("External plugin host exited unexpectedly while listing plugins"); + return; + } for (const auto &pd: lr.available) {