From dc62d1f2f4512e12e6dc4a426801756207cbf149 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Mon, 6 Aug 2018 23:23:34 +0100 Subject: [PATCH] Show exception in debug mode on startup with database exceptions. --- cicm_web/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cicm_web/Program.cs b/cicm_web/Program.cs index 48743312..d0b1aba0 100644 --- a/cicm_web/Program.cs +++ b/cicm_web/Program.cs @@ -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; } }