Description:
Add generic error handler.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -115,8 +115,15 | |||||
|
115 | #if NETCOREAPP |
|
115 | #if NETCOREAPP |
|
116 | DllMap.Initialise(false); |
|
116 | DllMap.Initialise(false); |
|
117 | #endif |
|
117 | #endif |
|
118 | using FNAGame g = new FNAGame(); |
|
118 | try { |
|
119 | g.Run(); |
|
119 | using FNAGame g = new FNAGame(); |
|
|
120 | g.Run(); | ||
|
|
121 | } | ||
|
|
122 | catch (Exception e) | ||
|
|
123 | { | ||
|
|
124 | Logging.Critical(string.Format("Unhandled exception: {0}", e)); | ||
|
|
125 | return; | ||
|
|
126 | } | ||
|
120 |
|
127 | ||
|
121 | #if !DEBUG |
|
128 | #if !DEBUG |
|
122 | Logging.logFile.Close(); |
|
129 | Logging.logFile.Close(); |
You need to be logged in to leave comments.
Login now