Skip to content

Commit

Permalink
Report each error as it happens
Browse files Browse the repository at this point in the history
Signed-off-by: Terry Howe <[email protected]>
  • Loading branch information
TerryHowe committed May 7, 2024
1 parent b3a4199 commit daa358e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (p *Printer) Println(a ...any) {
p.lock.Lock()
defer p.lock.Unlock()
_, err := fmt.Fprintln(p.out, a...)
if err != nil && p.errored == nil {
if err != nil {
p.errored = fmt.Errorf("display output error: %w", err)
_, _ = fmt.Fprint(os.Stderr, p.errored)
}
Expand Down

0 comments on commit daa358e

Please sign in to comment.