]> git.proxmox.com Git - librados2-perl.git/commitdiff
Make error messages in Rados.pm prettier
authorAlwin Antreich <a.antreich@proxmox.com>
Mon, 18 Jun 2018 16:12:41 +0000 (18:12 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Jun 2018 08:04:14 +0000 (10:04 +0200)
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/RADOS.pm

index d53f655a9646b62fa31d51bc2af67644eea28b22..d9e2e3bc67e54e56b899607e4638a94020a87386 100644 (file)
@@ -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;