TmuxCommandError
A tmux command that exited non-zero.
Source and package
- Qualified name
-
TmuxCommand Error - Module
- errors
- Package
- libtmux
- Source
- packages/libtmux/src/errors.ts
-
Description#
The parts are fields rather than a formatted sentence so callers can branch on them. Matching a message substring is the failure mode this replaces: it breaks silently when tmux rewords, and it cannot distinguish "already in the requested state" from a genuine error.
Members8#
- args: readonly string[] attribute
- code: Lib
Tmux attributeError Code - constructor method
- exitCode: number attribute
- stderr: readonly string[] attribute
- stderrIncludes method Whether tmux's own message contains a phrase, without message parsing at call sites.
- stdout: readonly string[] attribute Whatever the command printed before it failed.
- target: string | undefined attribute
Guides#
Pages that discuss TmuxCommandError.