From: Alex J. G. BurzyƄski Date: Fri, 29 Jul 2011 12:18:31 +0000 (+0100) Subject: add newlines at die messages X-Git-Tag: v0.009011~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b512e801795ecd9183b2f658e2b0b49962f45118;p=gitmo%2FMoo.git add newlines at die messages --- diff --git a/lib/Moo/Object.pm b/lib/Moo/Object.pm index 412acf4..09a4541 100644 --- a/lib/Moo/Object.pm +++ b/lib/Moo/Object.pm @@ -23,13 +23,13 @@ sub BUILDARGS { if ( scalar @_ == 1 ) { unless ( defined $_[0] && ref $_[0] eq 'HASH' ) { die "Single parameters to new() must be a HASH ref" - ." data => ". $_[0]; + ." data => ". $_[0] ."\n"; } return { %{ $_[0] } }; } elsif ( @_ % 2 ) { die "The new() method for $class expects a hash reference or a key/value list." - . " You passed an odd number of arguments"; + . " You passed an odd number of arguments\n"; } else { return {@_};