Show user-friendly message on OOM compilation error
This should provide a hint to user how to mitigate out-of-memory error on compilation inside Kotlin daemon or in-process. ^KT-47522 Fixed
This commit is contained in:
@@ -20,7 +20,9 @@ public enum ExitCode {
|
||||
OK(0),
|
||||
COMPILATION_ERROR(1),
|
||||
INTERNAL_ERROR(2),
|
||||
SCRIPT_EXECUTION_ERROR(3);
|
||||
SCRIPT_EXECUTION_ERROR(3),
|
||||
OOM_ERROR(137), // 137 is commonly used to indicate OOM error
|
||||
;
|
||||
|
||||
private final int code;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user