Skip to content

Exit codes

Generated from the exit code constants in client/internal/cli/app.go and server/cmd/lasboltctl/main.go. Do not edit.

A script can use the exit code of a command to see what went wrong. The codes are stable.

lasbolt

With --json, a failed command also prints the error as JSON with a code. The codes are on the error codes page.

lasbolt run ends with the exit code of the program that it runs. If a signal ended that program, the code is 128 plus the signal number.

CodeName in the sourceMeaning
0ExitOKSuccess.
1ExitErrorError. Something failed that has no code of its own. The message says what.
2ExitUsageUsage error. A command, a flag or an argument is wrong.
3ExitLoginRequiredLogin required. Nobody is logged in, the session ended, or the password or code is wrong.
4ExitOutsideScopeOutside scope. The session or the scoped key may not do this, or may not see this item.
5ExitNotFoundNot found. The item, folder or space does not exist, or the login cannot see it.
6ExitConflictConflict. The item exists already, a sync dropped or kept user content, or the server state changed.
7ExitApprovalApproval denied, expired or timed out. A per-use approval in the web app did not come.
8ExitUnavailableServer not available. The network failed, the server is down, or a rate limit applies.
9ExitLockedLocked. The end-to-end keys are not in memory. Run lasbolt unlock.
10ExitRollbackRollback. An end-to-end folder does not agree with a signed checkpoint, so writes to it are refused.

lasboltctl

CodeName in the sourceMeaning
0exitOKSuccess.
1exitErrorError.
2exitUsageUsage error. A command, a flag or an argument is wrong.
3exitNotFoundNot found. The user or the invitation does not exist.
4exitDeniedForbidden, or a conflict such as removing the last owner.
5exitConnectCannot connect to the control socket. Check that lasboltd runs and that you use the right --socket.

lasboltd

CodeMeaning
0The server stopped after a signal, or the command ran well.
1Error. The server could not start or stopped with an error. The log says why.