Skip to content

Commit

Permalink
Item9275: disable the Carp so that I can get on with updating this pr…
Browse files Browse the repository at this point in the history
…evisouly working trunk - we need to add info so the poor admin has a chance to find and resolve it

git-svn-id: http://svn.foswiki.org/trunk@8069 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jul 8, 2010
1 parent 04a1b9f commit f0d4005
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/lib/Foswiki/Configure/Type.pm
Expand Up @@ -41,7 +41,13 @@ sub load {
unless ($typer) {
my $typeClass = 'Foswiki::Configure::Types::' . $id;
eval "use $typeClass";
Carp::confess "Could not load type $id: $@" if ($@);
#TODO: rather than making Configure crash and unusable
#load the UNKNOWN type - I wish I knew how to also raise an error (maybe UNKNOWN's renderer shoudl always do so?
#Carp::confess "Could not load type $id: $@" if ($@);
if ($@) {
$typeClass = 'Foswiki::Configure::Types::UNKNOWN';
eval "use $typeClass";
}
$typer = $typeClass->new($id);
unless ($typer) {
# unknown type - give it default behaviours
Expand Down

0 comments on commit f0d4005

Please sign in to comment.