Skip to content

Commit

Permalink
mention the default message
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 26, 2016
1 parent 1c1c77b commit 65255be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Mojo/Exception.pm
Expand Up @@ -53,8 +53,7 @@ sub to_string {
}

sub trace {
my ($self, $start) = @_;
$start //= 1;
my ($self, $start) = (shift, shift // 1);
my @frames;
while (my @trace = caller($start++)) { push @frames, \@trace }
return $self->frames(\@frames);
Expand Down Expand Up @@ -158,7 +157,7 @@ Lines before the line where the exception occurred if available.
my $msg = $e->message;
$e = $e->message('Died at test.pl line 3.');
Exception message.
Exception message, defaults to "C<Exception!>".
=head2 verbose
Expand Down

0 comments on commit 65255be

Please sign in to comment.