Ignore:
Timestamp:
Aug 4, 2017, 9:11:00 AM (7 years ago)
Author:
chronos
Message:
  • Added: Show meaningful error message if target compiler or executor doesn't exist.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r81 r83  
    183183  SDoYouWantToSaveProject = 'There are unsaved changes in project. Do you want to save them?';
    184184  SCloseProjectFirst = 'Project need to be closed before it can be openned';
     185  SError = 'Error';
    185186
    186187{ TFormMain }
     
    482483procedure TFormMain.AProgramCompileExecute(Sender: TObject);
    483484begin
    484   with Core.CurrentTarget do begin
     485  with Core.CurrentTarget do
     486  try
    485487    AProgramStop.Execute;
    486488    SourceCode := FormSourceCode.MemoSource.Text;
     
    492494    FormTargetCode.MemoTarget.Text := TargetCode;
    493495    UpdateInterface;
     496  except
     497    on E: Exception do
     498      MessageDlg(SError, E.Message, mtError, [mbOk], 0);
    494499  end;
    495500end;
Note: See TracChangeset for help on using the changeset viewer.