[pve-devel] [PATCH cluster] ipcc_send_rec: include msgid in error
    Thomas Lamprecht 
    t.lamprecht at proxmox.com
       
    Tue Jul 25 10:11:49 CEST 2017
    
    
  
else we often may have no idea which request failed at all...
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 data/PVE/Cluster.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index 8990656..0d2a9bf 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -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;
 };
-- 
2.11.0
    
    
More information about the pve-devel
mailing list