On this page
error.refusal.Error.refused
- Module
- error.refusal
- Declared in
- Error
- Package
- libtmux
- Source
- crates/libtmux/src/error/refusal.rs
-
Classify a refused tmux command, recognizing a target that has gone.
tmux reports a missing target as `can't find <kind>: <target>` and exits 1, the same status it uses for an argument it did not like, so the message is the only thing that separates them. It is not localized -- tmux has no message catalogue -- and the wording has been stable across every supported release.
Anything that does not match stays a refusal, so a future rewording costs the distinction rather than correctness.
targetis the request's own-t, when it had one. tmux reports a server holding no sessions asno current targeteven for a target it was given, so the request is what recovers the name.
0 declared, 0 inherited