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

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jun 20 10:05:01 CEST 2018


On 6/18/18 6:12 PM, Alwin Antreich wrote:
> 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;
> 

applied




More information about the pve-devel mailing list