return di.Err when it's not nil

Signed-off-by: zhyon404 <zhyong4@gmail.com>
This commit is contained in:
zhyon404 2022-09-05 18:05:03 +08:00
parent aeac42be47
commit 2f47838ea1
2 changed files with 2 additions and 2 deletions

View File

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

View File

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