From b84ee81e7b50fc39eb41475ce8be35ae7236f56e Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Wed, 17 Mar 2021 10:33:22 +0200 Subject: [PATCH] Revert --- source/tlang/compiler/parser.d | 6 +++--- source/tlang/misc/exceptions.d | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) 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