From ae5a764ebe9a8e055dd2521c6db43232c3e705f8 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Wed, 17 Mar 2010 22:54:02 -0700 Subject: Remove newlines from fatal errors, so we get useful traces. --- usr/src/libpiny/Piny/Group.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/src/libpiny/Piny/Group.pm') diff --git a/usr/src/libpiny/Piny/Group.pm b/usr/src/libpiny/Piny/Group.pm index 8e0c2aa..3181033 100644 --- a/usr/src/libpiny/Piny/Group.pm +++ b/usr/src/libpiny/Piny/Group.pm @@ -55,11 +55,11 @@ sub BUILD { my ( $s ) = @_; if ( not ( $s->has_gid( ) or $s->has_groupname( ) ) ) { - die "You must provide either GID or groupname!\n"; + die "You must provide either GID or groupname!"; }; if ( $s->has_gid( ) and $s->has_groupname( ) ) { - die "You must not provide both GID and groupname!\n"; + die "You must not provide both GID and groupname!"; }; }; @@ -80,14 +80,14 @@ sub _build_grent { if ( $s->has_gid( ) ) { my @res = getgrgid( $s->gid( ) ); - die "getgrgid( " . $s->gid( ) . " ) failed: $!\n" unless @res; + die "getgrgid( " . $s->gid( ) . " ) failed: $!" unless @res; return \@res; } elsif ( $s->has_groupname( ) ) { my @res = getgrnam( $s->groupname( ) ); - die "getgrnam( " . $s->groupname( ) . " ) failed: $!\n" unless @res; + die "getgrnam( " . $s->groupname( ) . " ) failed: $!" unless @res; return \@res; } else { - die "Not enough information provided to lookup group!\n"; + die "Not enough information provided to lookup group!"; }; }; -- cgit v1.2.3