# tmux.FromEnvError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/from_env.go#L23
- **Page:** https://libtmux.org/en/go/latest/reference/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.
