MissingTargetError
MissingTargetError reports an operation attempted on a zero-value model identity. It matches ErrMissingTarget through errors.Is; callers can recover Object with errors.As.
Source and package
- Qualified name
-
tmux.Missing Target Error - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/target.go
-
Description#
A relation accessor such as
Session.ActiveWindoworSession.Windowsreturns ok false rather than a value with no id, and a creation call such asServer.NewSessioncarries no relations at all - so using a discarded or freshly created value's zero-value fields reaches this error on the first operation. Resolve live state with a Resolve* method or a freshServer.Snapshotinstead.