[#BloombergLP-balber-BerDecoder_Node-logError]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balber.adoc[balber]::xref:BloombergLP/balber/BerDecoder_Node.adoc[BerDecoder&lowbar;Node]::logError
:relfileprefix: ../../../
:mrdocs:

Log a decode error for this node and return a non&hyphen;zero value&period;

== Synopsis

Declared in `&lt;balber&lowbar;berdecoder&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
logError(char const* msg);
----

== Description

Set the node severity to `e&lowbar;BER&lowbar;ERROR`, print the error message specified by `msg` to the decoder&apos;s log, print the stack of nodes to the decoder&apos;s log, and return a non&hyphen;zero value&period;

== Return Value

a non&hyphen;zero value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *msg*
| error message to log
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
