libtmux Reference MCP Search
On this page

error.refusal.Error.refused

View as Markdown

Module
error.refusal
Declared in
Error
Package
libtmux
Source
crates/libtmux/src/error/refusal.rs
refused ( command : &static str , exit_code : Option<i32> , stderr : String , target : Option<&std::ffi::OsStr> ) Self
method [source]
method [source]
refused

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. target is the request's own -t, when it had one. tmux reports a server holding no sessions as no current target even for a target it was given, so the request is what recovers the name.

0 declared, 0 inherited

Esc

Type to search.