Show exception in debug mode on startup with database exceptions.

This commit is contained in:
2018-08-06 23:23:34 +01:00
parent de37bc02ff
commit dc62d1f2f4

View File

@@ -150,6 +150,9 @@ namespace cicm_web
catch(Exception ex)
{
Console.WriteLine("\u001b[31;1mCould not open database...\u001b[0m");
#if DEBUG
Console.WriteLine("\u001b[31;1mException: {0}\u001b[0m", ex.Message);
#endif
return;
}
}