On this page
exc.TmuxCommandError
- Module
- exc
- Package
- @libtmux/libtmux
- Source
- packages/libtmux/src/exc.ts
-
A tmux command that exited non-zero.
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.
Discussed in Errors and exceptions
7 declared, 0 inherited
Members
- args attribute
- exitCode attribute
- stderr attribute
- stdout attribute Whatever the command printed before it failed.
- target attribute
- constructor method
- stderrIncludes method Whether tmux's own message contains a phrase, without message parsing at call sites.