From 17c58ddb1b042772402940e600a3936d21f82b4b Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 19 Dec 2017 16:40:59 +0100 Subject: [PATCH] Show stack traces in some log messages. --- AutoTx/AutoTx.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AutoTx/AutoTx.cs b/AutoTx/AutoTx.cs index d246663..b4deb6d 100644 --- a/AutoTx/AutoTx.cs +++ b/AutoTx/AutoTx.cs @@ -107,7 +107,8 @@ namespace AutoTx _roboCommand = new RoboCommand(); } catch (Exception ex) { - writeLog("Error in LoadSettings(): " + ex.Message, true); + writeLog("Error in LoadSettings(): " + ex.Message + "\n" + + ex.StackTrace, true); throw new Exception("Error in LoadSettings."); } // NOTE: this is explicitly called *outside* the try-catch block so an Exception @@ -219,7 +220,7 @@ namespace AutoTx } } catch (Exception ex) { - writeLog("Error in CheckConfiguration(): " + ex.Message); + writeLog("Error in CheckConfiguration(): " + ex.Message + " " + ex.StackTrace); configInvalid = true; } -- GitLab