From 53062f5ebc0aa7c0be1df430ce754c68f1039167 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Wed, 12 Apr 2023 09:02:39 +0200 Subject: [PATCH] Commands - If the `lex`, `syntaxcheck` or `typecheck` commands fail then exit with an exit status of `-1` --- source/tlang/commandline/commands.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/tlang/commandline/commands.d b/source/tlang/commandline/commands.d index 1cf490ee..f0f1cda9 100644 --- a/source/tlang/commandline/commands.d +++ b/source/tlang/commandline/commands.d @@ -211,6 +211,7 @@ struct lexCommand catch(TError t) { gprintln(t.msg, DebugType.ERROR); + exit(-1); } catch(ErrnoException e) { @@ -260,6 +261,7 @@ struct parseCommand catch(TError t) { gprintln(t.msg, DebugType.ERROR); + exit(-1); } catch(ErrnoException e) { @@ -311,6 +313,7 @@ struct typecheckCommand catch(TError t) { gprintln(t.msg, DebugType.ERROR); + exit(-1); } catch(ErrnoException e) {