We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5386923 + 5581e82 commit 2af326dCopy full SHA for 2af326d
yantra/manager.py
@@ -119,8 +119,11 @@ def _get_container(self, plugin_type):
119
except KeyError:
120
raise AssertionError("No plugins found for type: {0}: ".format(plugin_type))
121
122
- def get_errors(self, plugin_type):
123
- return self._get_container(plugin_type).errors
+ def get_errors(self, *plugin_types):
+ errors = {}
124
+ for plugin_type in plugin_types:
125
+ errors.update(self._get_container(plugin_type).errors)
126
+ return errors
127
128
def register_plugin_type(self, plugin_type):
129
assert isinstance(plugin_type, PluginType)
0 commit comments