Skip to content

Commit

Permalink
🐛 show scan errors (#1151)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <ivan@mondoo.com>
  • Loading branch information
imilchev authored Mar 4, 2024
1 parent ab79a43 commit 759838d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions policy/scan/local_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func (s *LocalScanner) distributeJob(job *Job, ctx context.Context, upstream *up
log.Error().Err(err).Msg("failed to open progress bar")
}
}()
// Make sure the progress bar is closed when we exit early. Calling this multiple times
// is safe
defer multiprogress.Close()

assetBatches := slicesx.Batch(discoveredAssets.Assets, 100)
for i := range assetBatches {
Expand Down

0 comments on commit 759838d

Please sign in to comment.