Home > @microsoft/node-core-library > Terminal > writeErrorLine

Terminal.writeErrorLine() method

This API is provided as a 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, followed by a newline.

Signature:

writeErrorLine(...messageParts: (string | IColorableSequence)[]): void;

Parameters

Parameter Type Description
messageParts (string | IColorableSequence)[]  

Returns:

void

Remarks

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