Skip Menu |

This queue is for tickets about the Module-Pluggable CPAN distribution.

Report information
The Basics
Id: 18604
Status: resolved
Priority: 0/
Queue: Module-Pluggable

People
Owner: simonw [...] cpan.org
Requestors: dmaki [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: way to tell if a module failed to load
When modules are loaded via Module::Pluggable, errors are caught but are not thrown up the stack, so Module::Pluggble->import() finishes normally. It would be nice if there was an option to tell if a plugin failed to load. perhaps 'error mode' or some such thing: use Module::Pluggable require => 1, errmode => 'croak', .... ; the default can be the same as before, perhaps just 'warn'. I'd be happy to write a patch. let me know.
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #18604] way to tell if a module failed to load
Date: Wed, 12 Apr 2006 16:07:12 +0100
To: via RT <bug-Module-Pluggable [...] rt.cpan.org>
From: Simon Wistow <simon [...] thegestalt.org>
On Sat, Apr 08, 2006 at 08:35:55AM -0400, via RT said: Show quoted text
> When modules are loaded via Module::Pluggable, errors are caught but > are not thrown up the stack, so Module::Pluggble->import() finishes > normally.
I'm in the process of rewriting module pluggable to make it a lot more extendable so even though I like this idea I'm going to hold off on it until I've done the rewrite. In the meantime you can just get the names of the plugins and do the require yourself. Simon