]> git.proxmox.com Git - pve-manager.git/commitdiff
api: task download: name clashing params explicit
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Jan 2023 13:37:05 +0000 (14:37 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Jan 2023 13:37:08 +0000 (14:37 +0100)
we might add other ones that might be used together with the
`download` one, so rather be explicit on communicating what we check.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Tasks.pm

index 17126655404dc491d25c21d8f95a370a48e1f2d9..cdd2e55c8414ed80f82fc1a087d4852a13957799 100644 (file)
@@ -392,7 +392,7 @@ __PACKAGE__->register_method({
 
        if ($param->{download}) {
            if (defined($param->{start}) || defined($param->{limit})) {
-               die "Parameter 'download' can't be used with other parameters\n";
+               die "'download' cannot be used together with 'start' or 'limit' parameters\n";
            }
 
            my $fh;