]> git.proxmox.com Git - pve-cluster.git/commitdiff
ipcc_send_rec*: include msgid in error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Jul 2017 11:45:07 +0000 (13:45 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 25 Jul 2017 12:19:04 +0000 (14:19 +0200)
else we often may have no idea which request failed at all...

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

index 8990656ce055390a9fab08b04edfd491cd64f134..38c5fdbd845c4edd8fe6c6b7ae5928099de9237d 100644 (file)
@@ -381,7 +381,7 @@ my $ipcc_send_rec = sub {
 
     my $res = PVE::IPCC::ipcc_send_rec($msgid, $data);
 
-    die "ipcc_send_rec failed: $!\n" if !defined($res) && ($! != 0);
+    die "ipcc_send_rec[$msgid] failed: $!\n" if !defined($res) && ($! != 0);
 
     return $res;
 };
@@ -391,7 +391,7 @@ my $ipcc_send_rec_json = sub {
 
     my $res = PVE::IPCC::ipcc_send_rec($msgid, $data);
 
-    die "ipcc_send_rec failed: $!\n" if !defined($res) && ($! != 0);
+    die "ipcc_send_rec[$msgid] failed: $!\n" if !defined($res) && ($! != 0);
 
     return decode_json($res);
 };