Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/terminal > ITerminal > writeError

ITerminal.writeError() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Write an error message to the console with red text.

Signature:

writeError(...messageParts: TerminalWriteParameters): void;

Parameters

Parameter

Type

Description

messageParts

TerminalWriteParameters

Returns:

void

Remarks

The red color takes precedence over any other foreground colors set.