fixes intermittent error reporting

This commit is contained in:
Peter Monko 2018-10-03 13:31:08 +02:00
parent 0a47157c26
commit 6949b76e12

View File

@ -210,10 +210,8 @@ func (e *GenericTemplateBasedEncoder) Files() []*plugin_go.CodeGeneratorResponse
case f := <-resultChan:
files = append(files, f)
case err = <-errChan:
panic(err)
}
}
if err != nil {
panic(err)
}
return files
}