---
name: "XmCommandError"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmCommandError"
---

# XmCommandError(3)

A Command function that displays an error message

## NAME

**XmCommandError** — A Command function that displays an error message

## SYNOPSIS

```
#include <Xm/Command.h>
void XmCommandError(
Widget widget,
XmString error);
```

## DESCRIPTION

**XmCommandError** displays an error message in the history area of the Command widget. The **XmString** error is displayed until the next command entered occurs.

- *widget*

  Specifies the Command widget ID

- *error*

  Specifies the passed **XmString**

For a complete definition of Command and its associated resources, see [**XmCommand**(3)](/XmCommand/3.md).

## RELATED

[**XmCommand**(3)](/XmCommand/3.md).
