# tmux.FromEnvError

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

FromEnvError reports which tmux discovery variable was missing or malformed. It never retains or prints the variable's value.

## Members

- `Variable` (attribute) — Variable is the discovery variable name, never its value.
- `Reason` (attribute) — Reason describes why the variable cannot identify a tmux resource.
- `Error` (method) — Error implements error.
- `Unwrap` (method) — Unwrap makes FromEnvError compatible with ErrNotInsideTmux.
