Skip to content

Use `captureError()` for internal ERROR, WARNING and FATAL engine's messages

Compare
Choose a tag to compare
@AGulev AGulev released this 31 Oct 18:26
· 30 commits to main since this release

Starting this release the SDK collects all the internal ERROR, WARNING and FATAL (dmLogError(), dmLogWarning(), dmLogFatal()) engine's messages using PokiSDK.captureError(). These messages will be available in your dashboard in the following format: DEFOLD:message. For example:

DEFOLD:ERROR:GUI: Could not create the node since the buffer is full (32).

Do not collect Lua errors manually using sys.set_error_handler() anymore. It will be collected automatically, for example:

DEFOLD:ERROR:SCRIPT: example/poki-sdk.gui_script:32: attempt to perform arithmetic on global 'a' (a nil value)
stack traceback:
 example/poki-sdk.gui_script:32: in function <example/poki-sdk.gui_script:31>