mirror of
https://github.com/docker/buildx.git
synced 2024-11-22 15:37:16 +08:00
return di.Err when it's not nil
Signed-off-by: zhyon404 <zhyong4@gmail.com>
This commit is contained in:
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…
Reference in New Issue
Block a user