Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
we have multiple sources
  • Loading branch information
kraih committed Feb 26, 2016
1 parent 6808d61 commit 05903ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojo/Exception.pm
Expand Up @@ -7,7 +7,7 @@ has message => 'Exception!';
has 'verbose';

sub inspect {
my ($self, @source) = @_;
my ($self, @sources) = @_;

# Extract file and line from message
my @trace;
Expand All @@ -24,8 +24,8 @@ sub inspect {
return $self;
}

# Search for context in source
$self->_context($trace[-1][1], [map { [split "\n"] } @source]) if @source;
# Search for context in sources
$self->_context($trace[-1][1], [map { [split "\n"] } @sources]) if @sources;

return $self;
}
Expand Down

0 comments on commit 05903ed

Please sign in to comment.