Changeset 9654


Ignore:
Timestamp:
12/13/09 01:09:40 (2 years ago)
Author:
szabgab
Message:

display the errors to the user as a pop-up instead of a warning on the console

File:
1 edited

Legend:

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

    r9653 r9654  
    7171            eval { ( $html, $location ) = $self->_help_provider->help_render($topic); }; 
    7272            if ($@) { 
    73                 warn "Error while calling help_render: $@\n"; 
     73                $self->_main->error(Wx::gettext("Error while calling help_render: ") . $@); 
     74                return; 
    7475            } 
    7576        } 
     
    258259            $self->_help_provider(undef); 
    259260        } 
    260         $self->_search; 
     261        return if not $self->_search; 
    261262        $self->_update_list_box; 
    262263        $self->Show(1); 
     
    283284            eval { $self->_help_provider( $doc->get_help_provider ); }; 
    284285            if ($@) { 
    285                 warn "Error while calling get_help_provider: $@\n"; 
     286                $self->_main->error(Wx::gettext("Error while calling get_help_provider: ") . $@); 
     287                return; 
    286288            } 
     289            #if ($self->_help_provider 
    287290        } 
    288291    } 
     
    290293    eval { $self->_index( $self->_help_provider->help_list ); }; 
    291294    if ($@) { 
    292         warn "Error while calling help_list: $@\n"; 
    293     } 
    294  
    295     return; 
     295        $self->_main->error(Wx::gettext("Error while calling help_list: ") . $@); 
     296        return; 
     297    } 
     298 
     299    return 1; 
    296300} 
    297301 
Note: See TracChangeset for help on using the changeset viewer.