mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Show exception in debug mode on startup with database exceptions.
This commit is contained in:
@@ -150,6 +150,9 @@ namespace cicm_web
|
|||||||
catch(Exception ex)
|
catch(Exception ex)
|
||||||
{
|
{
|
||||||
Console.WriteLine("\u001b[31;1mCould not open database...\u001b[0m");
|
Console.WriteLine("\u001b[31;1mCould not open database...\u001b[0m");
|
||||||
|
#if DEBUG
|
||||||
|
Console.WriteLine("\u001b[31;1mException: {0}\u001b[0m", ex.Message);
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user