Changeset 17138

Show
Ignore:
Timestamp:
08/06/08 12:16:28 (5 years ago)
Author:
daisuke
Message:

be more anal about handling enclosures

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Data-Feed/trunk/lib/Data/Feed/RSS/Entry.pm

    r17004 r17138  
    155155    my $self = shift; 
    156156 
    157     die if @_; 
     157    { no warnings 'once'; 
     158        confess "Cannot handle enclosures when used with XML::RSS" 
     159            if $Data::Feed::Parser::RSS::PARSER_CLASS eq 'XML::RSS'; 
     160    } 
     161 
     162    { # XXX - We don't support creating enclosures (yet) 
     163        confess "Cannot handle creation of enclosures (yet)" if @_; 
     164    } 
    158165 
    159166    my @enclosures;