From c7abca7e099d2470588c04d49d85ec248f2b8524 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 9 Jun 2017 06:12:02 +0200 Subject: [PATCH] PVE::API2::ReplicationConfig->delete - use raise_param_exc --- PVE/API2/ReplicationConfig.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/API2/ReplicationConfig.pm b/PVE/API2/ReplicationConfig.pm index 12dee54ad..5af9c3dc3 100644 --- a/PVE/API2/ReplicationConfig.pm +++ b/PVE/API2/ReplicationConfig.pm @@ -217,7 +217,7 @@ __PACKAGE__->register_method ({ my $id = $param->{id}; if ($param->{force}) { - die "Keep will not work when force is set.\n" if $param->{keep}; + raise_param_exc({ 'keep' => "conflicts with parameter 'force'" }) if $param->{keep}; delete $cfg->{ids}->{$id}; } else { my $jobcfg = $cfg->{ids}->{$id};