Merge pull request #5984 from thaJeztah/fix_prune_cancel_errormessage

cli/command/network: fix error-message for cancelled prune
This commit is contained in:
Sebastiaan van Stijn 2025-04-04 18:18:46 +02:00 committed by GitHub
commit 2c3cf8db0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,7 @@ func runPrune(ctx context.Context, dockerCli command.Cli, options pruneOptions)
return "", err
}
if !r {
return "", errdefs.Cancelled(errors.New("network prune cancelled has been cancelled"))
return "", errdefs.Cancelled(errors.New("network prune has been cancelled"))
}
}