return di.Err when it's not nil

Signed-off-by: zhyon404 <zhyong4@gmail.com>
pull/1307/head
zhyon404 2 years ago
parent aeac42be47
commit 2f47838ea1

@ -40,7 +40,7 @@ func runDiskUsage(dockerCli command.Cli, opts duOptions) error {
for _, di := range dis { for _, di := range dis {
if di.Err != nil { if di.Err != nil {
return err return di.Err
} }
} }

@ -61,7 +61,7 @@ func runPrune(dockerCli command.Cli, opts pruneOptions) error {
for _, di := range dis { for _, di := range dis {
if di.Err != nil { if di.Err != nil {
return err return di.Err
} }
} }

Loading…
Cancel
Save