Kitten

Technical Manual sections

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.)

CodeMeaning
0Success. The update guard exits with 0 when the launcher can start its own version.
1A 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).
2kitten update: another update is in progress, or the outcome of the update is not known in time (see Update).
3The update guard has pointed app at another version, and the launcher runs that version’s launcher (see Launcher).
65systemExitCodes.dataError: an error in the project that a restart can’t fix (see Errors and restarts).
99systemExitCodes.restartRequest: a restart request (see Errors and restarts).

Like this? Fund us!

Small Technology Foundation is a tiny, independent not-for-profit.

We exist in part thanks to patronage by people like you. If you share our vision and want to support our work, please become a patron or donate to us today and help us continue to exist.