[pve-devel] [PATCH librados2-perl] Make error messages in Rados.pm prettier

Alwin Antreich a.antreich at proxmox.com
Mon Jun 18 18:12:41 CEST 2018


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 PVE/RADOS.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/PVE/RADOS.pm b/PVE/RADOS.pm
index d53f655..d9e2e3b 100644
--- a/PVE/RADOS.pm
+++ b/PVE/RADOS.pm
@@ -99,7 +99,7 @@ my $sendcmd = sub {
 
     $expect_tag = '>' if !$expect_tag;
 
-    die "detected forked connection" if $self->{pid} != $$;
+    die "detected forked connection\n" if $self->{pid} != $$;
 
     my ($restag, $raw);
     my $code = sub {
@@ -127,7 +127,7 @@ sub new {
     my $rpcenv = PVE::RPCEnvironment::get();
 
     socketpair(my $child, my $parent, AF_UNIX, SOCK_STREAM, PF_UNSPEC)
-	||  die "socketpair: $!";
+	||  die "socketpair: $!\n";
 
     my $cpid = fork();
 
@@ -168,7 +168,7 @@ sub new {
 		die "unable to create RADOS object\n";
 
 	    if (defined($params{ceph_conf}) && (!-e $params{ceph_conf})) {
-		die "Supplied ceph config doesn't exist, $params{ceph_conf}";
+		die "Supplied ceph config doesn't exist, $params{ceph_conf}\n";
 	    }
 
 	    my $ceph_conf = delete $params{ceph_conf} || $ceph_default_conf;
-- 
2.11.0




More information about the pve-devel mailing list