Commands
- If the `lex`, `syntaxcheck` or `typecheck` commands fail then exit with an exit status of `-1`
This commit is contained in:
parent
3830dd45bc
commit
53062f5ebc
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue