# cmdq_error

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L833
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmdq_error/

```c
void cmdq_error(struct cmdq_item *item, const char *fmt,...)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `fmt` (`const char *`)
- `` (`...`)

## Called by

- [`cmd_attach_session`](/en/tmux/3.2a/reference/c-function-cmd_attach_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-attach-session.c#L66)
- [`cmd_bind_key_exec`](/en/tmux/3.2a/reference/c-function-cmd-bind-key-c-cmd_bind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-bind-key.c#L56)
- [`cmd_break_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-break-pane.c#L79)
- [`cmd_capture_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L223)
- [`cmd_capture_pane_history`](/en/tmux/3.2a/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_history/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-capture-pane.c#L124)
- [`cmd_display_menu_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_menu_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L285)
- [`cmd_display_message_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-message-c-cmd_display_message_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-message.c#L79)
- [`cmd_display_panes_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-panes-c-cmd_display_panes_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-panes.c#L270)
- [`cmd_display_popup_exec`](/en/tmux/3.2a/reference/c-function-cmd-display-menu-c-cmd_display_popup_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-display-menu.c#L348)
- [`cmd_find_client`](/en/tmux/3.2a/reference/c-function-cmd_find_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1309)
- [`cmd_find_current_client`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_current_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1267)
- [`cmd_find_target`](/en/tmux/3.2a/reference/c-function-cmd_find_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L983)
- [`cmd_if_shell_callback`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L172)
- [`cmd_if_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-if-shell-c-cmd_if_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-if-shell.c#L95)
- [`cmd_join_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-join-pane.c#L92)
- [`cmd_kill_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-kill-window-c-cmd_kill_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-kill-window.c#L67)
- [`cmd_list_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-keys-c-cmd_list_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-keys.c#L165)
- [`cmd_load_buffer_done`](/en/tmux/3.2a/reference/c-function-cmd-load-buffer-c-cmd_load_buffer_done/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-load-buffer.c#L69)
- [`cmd_move_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-move-window.c#L104)
- [`cmd_new_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-session-c-cmd_new_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-session.c#L97)
- [`cmd_new_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-new-window-c-cmd_new_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-new-window.c#L82)
- [`cmd_paste_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-paste-buffer-c-cmd_paste_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-paste-buffer.c#L66)
- [`cmd_pipe_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-pipe-pane.c#L107)
- [`cmd_refresh_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-refresh-client.c#L135)
- [`cmd_rename_session_exec`](/en/tmux/3.2a/reference/c-function-cmd-rename-session-c-cmd_rename_session_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-rename-session.c#L62)
- [`cmd_resize_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-resize-pane.c#L103)
- [`cmd_resize_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-resize-window.c#L64)
- [`cmd_respawn_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-respawn-pane-c-cmd_respawn_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-respawn-pane.c#L87)
- [`cmd_respawn_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-respawn-window-c-cmd_respawn_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-respawn-window.c#L85)
- [`cmd_run_shell_exec`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L112)
- [`cmd_run_shell_timer`](/en/tmux/3.2a/reference/c-function-cmd-run-shell-c-cmd_run_shell_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-run-shell.c#L198)
- [`cmd_save_buffer_done`](/en/tmux/3.2a/reference/c-function-cmd-save-buffer-c-cmd_save_buffer_done/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-save-buffer.c#L68)
- [`cmd_save_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-save-buffer-c-cmd_save_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-save-buffer.c#L85)
- [`cmd_select_layout_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-layout-c-cmd_select_layout_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-layout.c#L128)
- [`cmd_select_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-pane-c-cmd_select_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-pane.c#L108)
- [`cmd_select_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-select-window-c-cmd_select_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-window.c#L109)
- [`cmd_send_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-send-keys.c#L156)
- [`cmd_set_buffer_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-buffer-c-cmd_set_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-buffer.c#L75)
- [`cmd_set_environment_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-environment-c-cmd_set_environment_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-environment.c#L58)
- [`cmd_set_option_exec`](/en/tmux/3.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L102)
- [`cmd_show_environment_exec`](/en/tmux/3.2a/reference/c-function-cmd-show-environment-c-cmd_show_environment_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-show-environment.c#L108)
- [`cmd_show_options_exec`](/en/tmux/3.2a/reference/c-function-cmd-show-options-c-cmd_show_options_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-show-options.c#L94)
- [`cmd_source_file_done`](/en/tmux/3.2a/reference/c-function-cmd-source-file-c-cmd_source_file_done/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L97)
- [`cmd_source_file_exec`](/en/tmux/3.2a/reference/c-function-cmd-source-file-c-cmd_source_file_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-source-file.c#L176)
- [`cmd_split_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-split-window-c-cmd_split_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-split-window.c#L84)
- [`cmd_swap_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-swap-window-c-cmd_swap_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-swap-window.c#L63)
- [`cmd_switch_client_exec`](/en/tmux/3.2a/reference/c-function-cmd-switch-client-c-cmd_switch_client_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-switch-client.c#L88)
- [`cmd_unbind_key_exec`](/en/tmux/3.2a/reference/c-function-cmd-unbind-key-c-cmd_unbind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-unbind-key.c#L53)
- [`cmd_wait_for_lock`](/en/tmux/3.2a/reference/c-function-cmd-wait-for-c-cmd_wait_for_lock/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L202)
- [`cmd_wait_for_unlock`](/en/tmux/3.2a/reference/c-function-cmd-wait-for-c-cmd_wait_for_unlock/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L227)
- [`cmd_wait_for_wait`](/en/tmux/3.2a/reference/c-function-cmd-wait-for-c-cmd_wait_for_wait/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-wait-for.c#L174)
- [`cmdq_error_callback`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_error_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L663)
- [`key_bindings_read_only`](/en/tmux/3.2a/reference/c-function-key-bindings-c-key_bindings_read_only/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L645)

## Calls

- [`cfg_add_cause`](/en/tmux/3.2a/reference/c-function-cfg_add_cause/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L850)
- [`cmd_get_source`](/en/tmux/3.2a/reference/c-function-cmd_get_source/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L849)
- [`control_write`](/en/tmux/3.2a/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L859)
- [`file_error`](/en/tmux/3.2a/reference/c-function-file_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L861)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L846)
- [`server_add_message`](/en/tmux/3.2a/reference/c-function-server_add_message/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L852)
- [`status_message_set`](/en/tmux/3.2a/reference/c-function-status_message_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L865)
- [`utf8_sanitize`](/en/tmux/3.2a/reference/c-function-utf8_sanitize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L855)
- [`xvasprintf`](/en/tmux/3.2a/reference/c-function-xvasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L843)

## Referenced declarations

- [`cmdq_item.client`](/en/tmux/3.2a/reference/c-struct-cmdq_item-client/) (attribute)
- [`CLIENT_CONTROL`](/en/tmux/3.2a/reference/c-define-tmux-h-client_control/) (constant)
- [`CLIENT_UTF8`](/en/tmux/3.2a/reference/c-define-tmux-h-client_utf8/) (constant)
- [`cmdq_item.cmd`](/en/tmux/3.2a/reference/c-struct-cmdq_item-cmd/) (attribute)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`cmd.file`](/en/tmux/3.2a/reference/c-struct-cmd-file/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`cmd.line`](/en/tmux/3.2a/reference/c-struct-cmd-line/) (attribute)
- [`client.name`](/en/tmux/3.2a/reference/c-struct-client-name/) (attribute)
- [`client.retval`](/en/tmux/3.2a/reference/c-struct-client-retval/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
