diff --git a/Program.cs b/Program.cs index 8a46ccf..a84f93d 100644 --- a/Program.cs +++ b/Program.cs @@ -26,6 +26,7 @@ catch (Exception ex) { Console.WriteLine($"Failed to get or store {ConfigFile} settings from user: {ex}"); + return; } } else @@ -33,13 +34,14 @@ try { var deserialize = new Deserializer(); - config = deserialize.Deserialize(ConfigFile); + config = deserialize.Deserialize(File.ReadAllText(ConfigFile)); Console.WriteLine($"Loaded settings in {ConfigFile}"); } catch (Exception ex) { Console.WriteLine($"Failed to deserialize {ConfigFile}: {ex}"); + return; } }