Skip to content

Commit

Permalink
recover
Browse files Browse the repository at this point in the history
  • Loading branch information
blampe committed Jan 29, 2024
1 parent d93ae65 commit d55d7eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions provider/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ func (d *docker) Build(
return nil, fmt.Errorf("creating pipe: %w", err)
}
go func() {
defer func() {
if err := recover(); err != nil {
fmt.Fprintf(os.Stderr, "Panic recovered: %s", err)
}
}()
s := bufio.NewScanner(r)
for s.Scan() {
ctx.LogStatus(diag.Info, s.Text())
Expand Down

0 comments on commit d55d7eb

Please sign in to comment.