diff options
Diffstat (limited to 'usr/src/libpiny/Piny/User.pm')
-rw-r--r-- | usr/src/libpiny/Piny/User.pm | 10 |
1 files changed, 5 insertions, 5 deletions
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!"; }; }; |