# window_pane_error_callback

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L962
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L967)
- [`server_destroy_pane`](/en/tmux/3.2a/reference/c-function-server_destroy_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L971)
- [`window_pane_destroy_ready`](/en/tmux/3.2a/reference/c-function-window_pane_destroy_ready/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L970)

## Referenced by

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

## Referenced declarations

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