diff --git a/source/tlang/compiler/parser.d b/source/tlang/compiler/parser.d index 7eccb49..f09725f 100644 --- a/source/tlang/compiler/parser.d +++ b/source/tlang/compiler/parser.d @@ -45,9 +45,9 @@ public final class Parser */ public static void expect(string message) { - throw new TError(message); - //gprintln(message, DebugType.ERROR); - //exit(0); /* TODO: Exit code */ /* TODO: Version that returns or asserts for unit tests */ + //throw new TError(message); + gprintln(message, DebugType.ERROR); + exit(0); /* TODO: Exit code */ /* TODO: Version that returns or asserts for unit tests */ } /** diff --git a/source/tlang/misc/exceptions.d b/source/tlang/misc/exceptions.d index 3ca67a4..d2b04d6 100644 --- a/source/tlang/misc/exceptions.d +++ b/source/tlang/misc/exceptions.d @@ -1,15 +1,17 @@ module misc.exceptions; -import gogga : generateMessage; +//import gogga : generateMessage; public class TError : Exception { this(string message) { /* Generate eerror message using gogga */ - byte[] messageBytes = generateMessage(message, DebugType.ERROR); + //byte[] messageBytes = generateMessage(message, DebugType.ERROR); /* TODO: Check the vnode for path of fd 0, dont vt100 is not tty device */ - super(messageBytes); + //super(messageBytes); + + super(""); } } \ No newline at end of file