Changeset 2191


Ignore:
Timestamp:
12/23/08 19:48:41 (3 years ago)
Author:
azawawi
Message:

Show an error message box in the following situations:

  • exporting a non-Perl6 file
  • STD.pm parsing error occurs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre-Plugin-Perl6/lib/Padre/Plugin/Perl6.pm

    r2164 r2191  
    8484    } 
    8585    if($doc->get_mimetype ne q{application/x-perl6}) { 
     86        Wx::MessageBox( 
     87            'Not a Perl 6 file', 
     88            'Export cancelled', 
     89            Wx::wxOK, 
     90            Padre->ide->wx->main_window 
     91        ); 
    8692        return; 
    8793    } 
     
    107113 
    108114    if($EVAL_ERROR) { 
    109         say 'Parsing error, bye bye ->export_html'; 
     115        Wx::MessageBox( 
     116            qq{STD.pm Parsing Error:\n$EVAL_ERROR}, 
     117            'Export cancelled', 
     118            Wx::wxOK, 
     119            Padre->ide->wx->main_window 
     120        ); 
     121        say "\nSTD.pm Parsing error\n" . $EVAL_ERROR; 
    110122        return; 
    111123    } 
Note: See TracChangeset for help on using the changeset viewer.