# window_pane_error_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1167
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-c-window_pane_error_callback/

```c
static void window_pane_error_callback(struct bufferevent *bufev, short what, void *data)
```

## Parameters

- `bufev` (`struct bufferevent *`)
- `what` (`short`)
- `data` (`void *`)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1172)
- [`server_destroy_pane`](/en/tmux/3.7c/reference/c-function-server_destroy_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1176)
- [`window_pane_destroy_ready`](/en/tmux/3.7c/reference/c-function-window_pane_destroy_ready/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1175)

## Referenced by

- [`window_pane_set_event`](/en/tmux/3.7c/reference/c-function-window_pane_set_event/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`window_pane.id`](/en/tmux/3.7c/reference/c-struct-window_pane-id/) (attribute)
- [`PANE_EXITED`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_exited/) (constant)
