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/User.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr/src/libpiny/Piny/User.pm') diff --git a/usr/src/libpiny/Piny/User.pm b/usr/src/libpiny/Piny/User.pm index bba859f..66757dc 100644 --- a/usr/src/libpiny/Piny/User.pm +++ b/usr/src/libpiny/Piny/User.pm @@ -70,11 +70,11 @@ sub BUILD { my ( $s ) = @_; if ( not ( $s->has_uid( ) or $s->has_username( ) ) ) { - die "You must provide either UID or username!\n"; + die "You must provide either UID or username!"; }; if ( $s->has_uid( ) and $s->has_username( ) ) { - die "You must not provide both UID and username!\n"; + die "You must not provide both UID and username!"; }; }; @@ -95,14 +95,14 @@ sub _build_pwent { if ( $s->has_uid( ) ) { my @res = getpwuid( $s->uid( ) ); - die "getpwuid( " . $s->uid( ) . " ) failed: $!\n" unless @res; + die "getpwuid( " . $s->uid( ) . " ) failed: $!" unless @res; return \@res; } elsif ( $s->has_username( ) ) { my @res = getpwnam( $s->username( ) ); - die "getpwnam( " . $s->username( ) . " ) failed: $!\n" unless @res; + die "getpwnam( " . $s->username( ) . " ) failed: $!" unless @res; return \@res; } else { - die "Not enough information provided to lookup user!\n"; + die "Not enough information provided to lookup user!"; }; }; -- cgit v1.2.3