Merge "Handle Scanner errors in kati output filter"
This commit is contained in:
commit
b1693d3bde
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue