From 51920ef69eaf537d9b974ce029c776a809902a66 Mon Sep 17 00:00:00 2001 From: Brychan Dempsey Date: Mon, 29 Mar 2021 14:56:39 +1300 Subject: [PATCH] Changed Error handling --- Assignment 1/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assignment 1/Program.cs b/Assignment 1/Program.cs index 4469f36..b791095 100644 --- a/Assignment 1/Program.cs +++ b/Assignment 1/Program.cs @@ -274,9 +274,11 @@ namespace Assignment_1 } else { + /* Console.WriteLine(e.LinePosition + ": " + e.Message); source.Position = initPos; - source.SetLength(initPos); + source.SetLength(initPos);*/ + WriteDebugLine(0, 0, e.Message, source); } if (!dynamicInput) {