Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10865 for trunk/sources


Ignore:
Timestamp:
05/21/14 10:14:38 (11 years ago)
Author:
jkarder
Message:

#2136: fixed compilation error output in console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting.Views/3.3/ScriptView.cs

    r10761 r10865  
    114114        return true;
    115115      } catch {
    116         outputTextBox.AppendText("Compilation failed.");
    117         return false;
     116        if (Content.CompileErrors.HasErrors) {
     117          outputTextBox.AppendText("Compilation failed.");
     118          return false;
     119        } else {
     120          outputTextBox.AppendText("Compilation succeeded.");
     121          return true;
     122        }
    118123      } finally {
    119124        ShowCompilationResults();
     
    149154    protected virtual void AdjustErrorListViewColumnSizes() {
    150155      foreach (ColumnHeader ch in errorListView.Columns)
    151         // adjusts the column width to the width of the column
    152         // header or the column content, whichever is greater
     156        // adjusts the column width to the width of the column header
    153157        ch.Width = -2;
    154158    }
Note: See TracChangeset for help on using the changeset viewer.