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); + } } }