return correct exit code when script execution fails

This commit is contained in:
Dmitry Jemerov
2016-01-14 12:47:11 +01:00
parent f3faa10fcc
commit 39ad2b2378
3 changed files with 8 additions and 4 deletions
@@ -19,7 +19,8 @@ package org.jetbrains.kotlin.cli.common;
public enum ExitCode {
OK(0),
COMPILATION_ERROR(1),
INTERNAL_ERROR(2);
INTERNAL_ERROR(2),
SCRIPT_EXECUTION_ERROR(3);
private final int code;