Launcher: Added main VM ctor trycatch to print to err console

Until we add a full log system to the launcher, this will hopefully give us some info that people can see if starting through a console
This commit is contained in:
Justin Swanson 2020-03-30 13:39:16 -05:00
parent 2009bfde6a
commit 6f75aa44a4

View File

@ -22,8 +22,17 @@ namespace Wabbajack.Launcher
{
public MainWindow()
{
DataContext = new MainWindowVM();
InitializeComponent();
try
{
DataContext = new MainWindowVM();
}
catch(Exception ex)
{
System.Console.Error.WriteLine("Error creating datacontext.");
System.Console.Error.WriteLine(ex);
throw;
}
}
}
}