Skip to content

Commit e741426

Browse files
committed
Log full name of assembly on unhandled exception
1 parent 79d280d commit e741426

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/TSMapEditor/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("Rampastring")]
1212
[assembly: AssemblyProduct("World-Altering Editor (WAE)")]
13-
[assembly: AssemblyCopyright("Copyright © Rami 'Rampastring' Pasanen 2023")]
13+
[assembly: AssemblyCopyright("Copyright © Rami 'Rampastring' Pasanen 2024")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -22,7 +22,7 @@
2222
// The following GUID is for the ID of the typelib if this project is exposed to COM
2323
[assembly: Guid("7f1101de-6849-404c-9141-0df6a6bf12e7")]
2424

25-
[assembly: SupportedOSPlatform("Windows7.0")]
25+
[assembly: SupportedOSPlatform("windows10.0.14393.0")]
2626

2727
// Version information for an assembly consists of the following four values:
2828
//

src/TSMapEditor/Rendering/GameClass.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ private void HandleUnhandledException(Exception ex)
6262

6363
StringBuilder sb = new StringBuilder();
6464

65+
string fullName = typeof(GameClass).Assembly.FullName;
66+
67+
LogLineGenerate("World-Altering Editor (" + fullName + ")", sb, exceptLogPath);
6568
LogLineGenerate("Unhandled exception! @ " + DateTime.Now.ToLongTimeString(), sb, exceptLogPath);
6669
LogLineGenerate("Message: " + ex.Message, sb, exceptLogPath);
6770
LogLineGenerate("Stack trace: " + ex.StackTrace, sb, exceptLogPath);

0 commit comments

Comments
 (0)