show plugin name on execution failed
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
if (_activePlugin == nullptr)
throw ConfigException("Module <" + pluginTypeToStr(_moduleType) +
"> has not been configured!");
- return _activePlugin->getPluginInstance().execute(data);
+ void *result = nullptr;
+
+ try {
+ result = _activePlugin->getPluginInstance().execute(data);
+ } catch (nncc::foundation::Exception &e) {
+ e.append("Plugin <" + _activePlugin->getPluginName() + "> execution failed!");
+ throw;
+ }
+ return result;
}
contrib::plugin::PluginType AbstractModule::getModuleType() const { return _moduleType; }