# tmux.PaneEndedError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/2506df7dc1efe4293452a1c78b01a2bffa33a6a0/tmux/pane_text_wait.go#L61
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-paneendederror/

PaneEndedError reports that [Pane.WaitForText] stopped because the pane or its server ended first. The text read before then is in the returned [PaneTextWait].

It matches [ErrPaneEnded] through errors.Is, and [ErrNotFound] for
[PaneGone] and [ErrNoServer] for [ServerGone]. It unwraps to the
[CommandError] of the failed read when there was one.

## Members

### Other members

- [`Error`](/en/go/latest/reference/tmux-paneendederror-error/) (method): Error implements error.
- [`Is`](/en/go/latest/reference/tmux-paneendederror-is/) (method): Is reports [ErrNotFound] for [PaneGone] and [ErrNoServer] for [ServerGone], including when no failed read is attached.
- [`Reason`](/en/go/latest/reference/tmux-paneendederror-reason/) (attribute): Reason says how the pane ended.
- [`Unwrap`](/en/go/latest/reference/tmux-paneendederror-unwrap/) (method): Unwrap returns [ErrPaneEnded] and the failed read's error, if any.
