From e1e554d6bae99bfe64f22bca6bf68620d577c9ff Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 22 Jan 2023 15:05:54 +0200 Subject: [PATCH] Command-line - Added missing exception catch --- source/tlang/commandline/commands.d | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/tlang/commandline/commands.d b/source/tlang/commandline/commands.d index 04e1918..aafe633 100644 --- a/source/tlang/commandline/commands.d +++ b/source/tlang/commandline/commands.d @@ -34,7 +34,14 @@ struct compileCommand void onExecute() { writeln("Compiling source file: "~sourceFile); - beginCompilation([sourceFile]); + try + { + beginCompilation([sourceFile]); + } + catch(TError t) + { + gprintln(t.msg, DebugType.ERROR); + } } }