testing some error handling
This commit is contained in:
@@ -45,6 +45,9 @@ func RegisterPlugin(plugin Plugin) error {
|
||||
|
||||
func compileSourceType(source data.Source) (data.Source, error) {
|
||||
if source.SourceType != nil {
|
||||
if _, ok := namePlugins[source.SourceType.Name]; !ok {
|
||||
return source, errors.New("source type " + source.SourceType.Name + " not found")
|
||||
}
|
||||
return source, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user