fix(core): Fixes errors from missing files (#511)
This commit is contained in:
parent
ea5d09a7d7
commit
8006fa20df
10 changed files with 54 additions and 14 deletions
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using MimeKit;
|
||||
using Server.Json;
|
||||
|
|
@ -52,7 +53,7 @@ namespace Server.Configurations
|
|||
Utility.PushColor(ConsoleColor.Red);
|
||||
Console.WriteLine("failed");
|
||||
Utility.PopColor();
|
||||
throw new Exception("Core: Email configuration failed to deserialize.");
|
||||
throw new JsonException($"Failed to deserialize {path}.");
|
||||
}
|
||||
|
||||
Console.WriteLine("done");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue