From 6949b76e12daab6985d453b294cb6a7d5a79d8c3 Mon Sep 17 00:00:00 2001 From: Peter Monko Date: Wed, 3 Oct 2018 13:31:08 +0200 Subject: [PATCH] fixes intermittent error reporting --- encoder.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/encoder.go b/encoder.go index 2be60b8..32aefd5 100644 --- a/encoder.go +++ b/encoder.go @@ -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 }