Changeset 10580

Show
Ignore:
Timestamp:
02/07/10 04:27:38 (7 months ago)
Author:
waxhead
Message:

Make reading the Error message possible when a plugin fails and the @INC path is printed out to the error string.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Wx/Dialog/PluginManager.pm

    r10436 r10580  
    350350        my $message = $self->{plugin}->errstr; 
    351351        my $title   = Wx::gettext('Error'); 
     352         
     353        # @INC gets printed out between () remove that for now 
     354        $message =~ s/\(\@INC.*\)//; 
     355         
    352356        Wx::MessageBox( $message, $title, Wx::wxOK | Wx::wxCENTER, $self ); 
    353357}