Skip to content

Commit 5a47eaf

Browse files
committed
Use proper exit code on unknown state
1 parent 2e54c93 commit 5a47eaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/io/xpipe/core/process/ProcessOutputException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static ProcessOutputException of(int exitCode, String... messages) {
2828
.START_FAILED_EXIT_CODE -> "Process did not start up properly and had to be killed"
2929
+ errorSuffix;
3030
case CommandControl.EXIT_TIMEOUT_EXIT_CODE -> "Wait for process exit timed out" + errorSuffix;
31+
case CommandControl.UNASSIGNED_EXIT_CODE -> "Process exited with unknown state" + errorSuffix;
3132
default -> "Process returned exit code " + exitCode + errorSuffix;
3233
};
3334
return new ProcessOutputException(message, exitCode, combinedError);

0 commit comments

Comments
 (0)