Skip to content
Snippets Groups Projects
Commit 17c58ddb authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Show stack traces in some log messages.

parent 8c233bb2
No related branches found
No related tags found
No related merge requests found
...@@ -107,7 +107,8 @@ namespace AutoTx ...@@ -107,7 +107,8 @@ namespace AutoTx
_roboCommand = new RoboCommand(); _roboCommand = new RoboCommand();
} }
catch (Exception ex) { 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."); throw new Exception("Error in LoadSettings.");
} }
// NOTE: this is explicitly called *outside* the try-catch block so an Exception // NOTE: this is explicitly called *outside* the try-catch block so an Exception
...@@ -219,7 +220,7 @@ namespace AutoTx ...@@ -219,7 +220,7 @@ namespace AutoTx
} }
} }
catch (Exception ex) { catch (Exception ex) {
writeLog("Error in CheckConfiguration(): " + ex.Message); writeLog("Error in CheckConfiguration(): " + ex.Message + " " + ex.StackTrace);
configInvalid = true; configInvalid = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment