Skip to content

Commit e9b68fc

Browse files
committed
Security protocol type exception message logging
Suppress LocFile warnings (by member initializing)
1 parent dfc0e57 commit e9b68fc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AppUpdater/MUVersion.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public static async Task<Release> Init()
5454
}
5555
catch(Exception ex)
5656
{
57-
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot set the security protocol type - TLS/TLS1.1/TLS1.2/SSL3 probably not supported");
57+
Log.Write(LogLevel.EXPERT, true,
58+
"AppUpdater.MUVersion: Cannot set the security protocol type - TLS/TLS1.1/TLS1.2/SSL3 probably not supported\r\n" + ex.Message);
5859
return null;
5960
}
6061

MedocUpdates/Loc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public LocLanguage(List<LocalizePair> str, string lang)
3838
class LocFile
3939
{
4040
//[JsonProperty("language")]
41-
public string language;
41+
public string language = "";
4242

4343
//[JsonProperty("tokens")]
44-
public List<LocalizePair> tokens;
44+
public List<LocalizePair> tokens = new List<LocalizePair>();
4545
}
4646

4747
public static class Loc

0 commit comments

Comments
 (0)