- If the `lex`, `syntaxcheck` or `typecheck` commands fail then exit with an exit status of `-1`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-04-12 09:02:39 +02:00
parent 3830dd45bc
commit 53062f5ebc
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{