- Timestamp:
- 03/31/13 15:56:44 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.3/OperatorExecutionException.cs
r7259 r9339 21 21 22 22 using System; 23 using System.Diagnostics; 23 24 24 25 namespace HeuristicLab.Core { … … 32 33 string name = "\"" + op.Name + "\""; 33 34 if (!op.Name.Equals(op.ItemName)) name += " (" + op.ItemName + ")"; 34 35 if (!string.IsNullOrEmpty(op.GetType().Assembly.Location)) { 36 var fvi = FileVersionInfo.GetVersionInfo(op.GetType().Assembly.Location); 37 name += " [" + fvi.FileName + ": " + fvi.FileVersion + "]"; 38 } 35 39 if (InnerException == null) 36 40 return base.Message + name + "."; -
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/ErrorHandling.cs
r7259 r9339 21 21 22 22 using System; 23 using System.Diagnostics; 23 24 using System.Windows.Forms; 24 25 … … 29 30 return string.Empty; 30 31 } else { 31 string message = exception.GetType().Name + ": " + exception.Message + Environment.NewLine + 32 string message = 33 "HeuristicLab version: " + FileVersionInfo.GetVersionInfo(typeof(ErrorHandling).Assembly.Location).FileVersion + Environment.NewLine + 34 exception.GetType().Name + ": " + exception.Message + Environment.NewLine + 32 35 exception.StackTrace; 33 36
Note: See TracChangeset
for help on using the changeset viewer.