Skip to content

[Question] How do you get lua error details from the JavaScript side?Β #143

@yuri-kiss

Description

@yuri-kiss

I cannot inject lua into the script I am running or modify it to use pcall. I am using (and must use <Engine>.doString).

I looked through the source code and couldn't find any way to get the error details, it seems that it is just logged to the console and there is no JavaScript end that I can hook into for getting the error, the value is popped off the stack and everything.

In general I need a way to get the error line and message without having to parse the thrown JavaScript <Error>.message property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions