# tmux.PlanError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/plan.go#L19
- **Page:** https://libtmux.org/reference/go/tmux-planerror/

PlanError reports a plan this package refused before sending anything to tmux. It matches [ErrPlan] through errors.Is; callers can recover Step and Reason with errors.As.

## Members

- `Step` (attribute) — Step is the zero-based index of the operation at fault.
- `Reason` (attribute) — Reason describes what makes the plan unrunnable.
- `Error` (method) — Error implements error.
- `Unwrap` (method) — Unwrap makes PlanError compatible with ErrPlan.
