Merge pull request #127 from piotrekmonko/fix_intermittent_errors

fixes intermittent error reporting
This commit is contained in:
Manfred Touron 2019-02-10 21:37:31 +01:00 committed by GitHub
commit baffaa4b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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