fix: Adds better error message for missing assemblies (#1150)

Adds better error messaging for when the server cannot find a dependency. The most common error is MimeKit is missing because the assemblyDirectories field in modernuo.json does not have any valid paths.
This commit is contained in:
Kamron Batman 2022-08-27 18:55:43 -07:00 committed by GitHub
parent b8146f26f1
commit 1a44d824d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 11 deletions

View file

@ -37,6 +37,8 @@ public static class ServerConfiguration
public static List<IPEndPoint> Listeners => m_Settings.Listeners;
public static string ConfigurationFilePath => _relPath;
public static ClientVersion GetSetting(string key, ClientVersion defaultValue) =>
m_Settings.Settings.TryGetValue(key, out var value) ? new ClientVersion(value) : defaultValue;