KcdMp.log.error
Writes an error to the interface log.
The same as KcdMp.log.info, marked as an error. When the server asked to hear the errors of its pages, the game
mode is told of it as well (with the text cut short, at most five a minute for a player).
Syntax
Section titled “Syntax”KcdMp.log.error(...args)| Parameter | Type | |
|---|---|---|
...args |
unknown[] |
what to write |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”try { render(data);} catch (e) { KcdMp.log.error("render failed:", e.message);}See also
Section titled “See also”KcdMp.log.info · KcdMp.log.warn · KcdMp.onError · the Logging and errors group of the index
