summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/Piny/User.pm
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-17 22:54:02 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-03-17 22:54:02 -0700
commitae5a764ebe9a8e055dd2521c6db43232c3e705f8 (patch)
tree068befaad4755693494f4fdac9195a8163b13150 /usr/src/libpiny/Piny/User.pm
parent654a7353e1c46878dd84bfef0e987f0205e03fde (diff)
downloadpiny-code-ae5a764ebe9a8e055dd2521c6db43232c3e705f8.tar.gz
piny-code-ae5a764ebe9a8e055dd2521c6db43232c3e705f8.zip
Remove newlines from fatal errors, so we get useful traces.
Diffstat (limited to 'usr/src/libpiny/Piny/User.pm')
-rw-r--r--usr/src/libpiny/Piny/User.pm10
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!";
};
};