Adjust exit codes
This commit is contained in:
parent
6af6d2ca15
commit
ce6506cb88
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ public class Main {
|
||||||
new SemanticAnalysis(program).analyze();
|
new SemanticAnalysis(program).analyze();
|
||||||
} catch (SemanticException e) {
|
} catch (SemanticException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.exit(2);
|
System.exit(7);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
List<IrGraph> graphs = new ArrayList<>();
|
List<IrGraph> graphs = new ArrayList<>();
|
||||||
|
|
@ -54,7 +54,7 @@ public class Main {
|
||||||
return parser.parseProgram();
|
return parser.parseProgram();
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
System.exit(1);
|
System.exit(42);
|
||||||
throw new AssertionError("unreachable");
|
throw new AssertionError("unreachable");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue