parent
7577118978
commit
8f5faf58f0
|
@ -198,18 +198,17 @@ struct compileCommand
|
||||||
}
|
}
|
||||||
catch(TError t)
|
catch(TError t)
|
||||||
{
|
{
|
||||||
gprintln(t.msg, DebugType.ERROR);
|
ERROR(t.msg);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
catch(ErrnoException e)
|
catch(ErrnoException e)
|
||||||
{
|
{
|
||||||
/* TODO: Use gogga error */
|
ERROR("Could not open source file "~sourceFile);
|
||||||
writeln("Could not open source file "~sourceFile);
|
|
||||||
exit(-2);
|
exit(-2);
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
gprintln(e.msg, DebugType.ERROR);
|
ERROR(e.msg);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -252,13 +251,12 @@ struct lexCommand
|
||||||
}
|
}
|
||||||
catch(TError t)
|
catch(TError t)
|
||||||
{
|
{
|
||||||
gprintln(t.msg, DebugType.ERROR);
|
ERROR(t.msg);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
catch(ErrnoException e)
|
catch(ErrnoException e)
|
||||||
{
|
{
|
||||||
/* TODO: Use gogga error */
|
ERROR("Could not open source file "~sourceFile);
|
||||||
writeln("Could not open source file "~sourceFile);
|
|
||||||
exit(-2);
|
exit(-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -303,13 +301,12 @@ struct parseCommand
|
||||||
}
|
}
|
||||||
catch(TError t)
|
catch(TError t)
|
||||||
{
|
{
|
||||||
gprintln(t.msg, DebugType.ERROR);
|
ERROR(t.msg);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
catch(ErrnoException e)
|
catch(ErrnoException e)
|
||||||
{
|
{
|
||||||
/* TODO: Use gogga error */
|
ERROR("Could not open source file "~sourceFile);
|
||||||
writeln("Could not open source file "~sourceFile);
|
|
||||||
exit(-2);
|
exit(-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -360,13 +357,12 @@ struct typecheckCommand
|
||||||
}
|
}
|
||||||
catch(TError t)
|
catch(TError t)
|
||||||
{
|
{
|
||||||
gprintln(t.msg, DebugType.ERROR);
|
ERROR(t.msg);
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
catch(ErrnoException e)
|
catch(ErrnoException e)
|
||||||
{
|
{
|
||||||
/* TODO: Use gogga error */
|
ERROR("Could not open source file "~sourceFile);
|
||||||
writeln("Could not open source file "~sourceFile);
|
|
||||||
exit(-2);
|
exit(-2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue