mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Small fixes [stage]
This commit is contained in:
parent
59c592dc7e
commit
de9ef6fb6c
3 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ public interface CommandControl extends ProcessControl {
|
||||||
int UNASSIGNED_EXIT_CODE = -1;
|
int UNASSIGNED_EXIT_CODE = -1;
|
||||||
int EXIT_TIMEOUT_EXIT_CODE = -2;
|
int EXIT_TIMEOUT_EXIT_CODE = -2;
|
||||||
int START_FAILED_EXIT_CODE = -3;
|
int START_FAILED_EXIT_CODE = -3;
|
||||||
|
int INTERNAL_ERROR_EXIT_CODE = -4;
|
||||||
|
|
||||||
enum TerminalExitMode {
|
enum TerminalExitMode {
|
||||||
KEEP_OPEN,
|
KEEP_OPEN,
|
||||||
|
|
|
@ -29,6 +29,7 @@ public class ProcessOutputException extends Exception {
|
||||||
+ errorSuffix;
|
+ errorSuffix;
|
||||||
case CommandControl.EXIT_TIMEOUT_EXIT_CODE -> "Wait for process exit timed out" + errorSuffix;
|
case CommandControl.EXIT_TIMEOUT_EXIT_CODE -> "Wait for process exit timed out" + errorSuffix;
|
||||||
case CommandControl.UNASSIGNED_EXIT_CODE -> "Process exited with unknown state. Did an external process interfere?" + errorSuffix;
|
case CommandControl.UNASSIGNED_EXIT_CODE -> "Process exited with unknown state. Did an external process interfere?" + errorSuffix;
|
||||||
|
case CommandControl.INTERNAL_ERROR_EXIT_CODE -> "Process execution failed" + errorSuffix;
|
||||||
default -> "Process returned exit code " + exitCode + errorSuffix;
|
default -> "Process returned exit code " + exitCode + errorSuffix;
|
||||||
};
|
};
|
||||||
return new ProcessOutputException(message, exitCode, combinedError);
|
return new ProcessOutputException(message, exitCode, combinedError);
|
||||||
|
|
|
@ -250,6 +250,7 @@ if [ "$exit_status" != 0 ]; then
|
||||||
exit "$exit_status"
|
exit "$exit_status"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
printf "XPipe was successfully installed. You should be able to find XPipe in your desktop environment now. The "
|
printf "XPipe was successfully installed. You should be able to find XPipe in your desktop environment now. The "
|
||||||
bold "xpipe"
|
bold "xpipe"
|
||||||
printf " cli executable was also added to your path. You can ether use "
|
printf " cli executable was also added to your path. You can ether use "
|
||||||
|
@ -257,5 +258,6 @@ bold "man xpipe"
|
||||||
printf " or "
|
printf " or "
|
||||||
bold "xpipe --help"
|
bold "xpipe --help"
|
||||||
printf " for help.\n"
|
printf " for help.\n"
|
||||||
|
echo ""
|
||||||
|
|
||||||
launch
|
launch
|
Loading…
Reference in a new issue