Skip to content

Commit

Permalink
Item14237: Fixed a broken exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Apr 15, 2017
1 parent 329490e commit 76b7d84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/lib/Foswiki/Extensions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,11 @@ sub _loadFromSubDir {
# We don't really fail upon extension load because this isn't fatal
# in neither way. What bad could unloaded extension cause?
push @{ $this->_errors },
Foswiki::Exception::Ext::Load->transmute( $_, 1,
extension => $extModule );
Foswiki::Exception::Ext::Load->transmute(
$_, 1,
extension => $extModule,
reason => Foswiki::Exception::errorStr($_),
);
say STDERR "Extension $extModule problem: \n",
Foswiki::Exception::errorStr( $this->_errors->[-1] );
};
Expand Down

0 comments on commit 76b7d84

Please sign in to comment.