Skip to content

Commit

Permalink
Item14237: Raise Foswiki::Exception::ModLoad when module load fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 29, 2017
1 parent b801216 commit 116e7c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki.pm
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ sub load_package {
}
catch {
#say STDERR "! Load failed for $fullname: $_";
my $e = Foswiki::Exception->transmute( $_, 0 );
my $e =
Foswiki::Exception::ModLoad->transmute( $_, 1,
moduleName => $fullname, );
$e->rethrow;
};
}
Expand Down

0 comments on commit 116e7c2

Please sign in to comment.