Merge "Handle Scanner errors in kati output filter"

This commit is contained in:
Treehugger Robot 2018-03-07 17:45:22 +00:00 committed by Gerrit Code Review
commit b1693d3bde
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ func katiRewriteOutput(ctx Context, pipe io.ReadCloser) {
if !haveBlankLine {
fmt.Fprintln(ctx.Stdout())
}
if err := scanner.Err(); err != nil {
ctx.Println("Error from kati parser:", err)
io.Copy(ctx.Stderr(), pipe)
}
}
func runKatiCleanSpec(ctx Context, config Config) {