[#node-Warnings-Set] = xref:node.adoc[node]::xref:node/Warnings.adoc[Warnings]::Set :relfileprefix: ../../ :mrdocs: Set a warning message. If a warning with the specified `id` is already active, false is returned and the new warning is ignored. If `id` does not yet exist, the warning is set, the UI is updated, and true is returned. == Synopsis Declared in `<node/warnings.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e144313b8)]] bool Set( xref:node/Warnings.adoc[warning_type] id, xref:bilingual_str.adoc[bilingual_str] message); ---- == Return Value true if the warning was indeed set (i.e. there is no active warning with this `id`), otherwise false. == Parameters [cols="1,4"] |=== | Name| Description | *id* [in] | Unique identifier of the warning. | *message* [in] | Warning message to be shown. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#