Technical Manual sections
Reference › Technical Manual › Exit codes
systemExitCodes in src/lib/system-exit-codes.ts defines Kitten’s exit codes, and GuardResult in src/lib/updateGuard.ts defines the update guard’s. (Code 2 is a literal in src/cli/commands/update.ts.)
| Code | Meaning |
|---|---|
0 | Success. The update guard exits with 0 when the launcher can start its own version. |
1 | A general error (e.g., Kitten’s internal database fails to initialise, see Errors and restarts). The launcher exits with 1 when its runtime is missing. The kitten check command exits with 1 when it finds an error. The update guard exits with 1 when its version can’t start, a step of a rollback fails, or the guard itself fails (see Updates). |
2 | kitten update: another update is in progress, or the outcome of the update is not known in time (see Update). |
3 | The update guard has pointed app at another version, and the launcher runs that version’s launcher (see Launcher). |
65 | systemExitCodes.dataError: an error in the project that a restart can’t fix (see Errors and restarts). |
99 | systemExitCodes.restartRequest: a restart request (see Errors and restarts). |