Skip to content

Commit

Permalink
added error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp committed Oct 1, 2024
1 parent e0050a7 commit 6b3fcb0
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Mirivoice.Desktop/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,19 @@ class Program
[STAThread]
public static void Main(string[] args)
{
try
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
InitLogging();
InitMirivoice();
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
catch (Exception e)
{
Log.Fatal($"{e.Message}\n{e.StackTrace}");
}


Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
InitLogging();
InitMirivoice();
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);

}

// Avalonia configuration, don't remove; also used by visual designer.
Expand Down

0 comments on commit 6b3fcb0

Please sign in to comment.