Skip to content

Make Lua trust error message more serious #585

@Aurumaker72

Description

@Aurumaker72

Description

The current error message is

Blocked call to '%s': this function is dangerous and not allowed in untrusted Lua environments. To enable it, turn on 'Trusted Mode' from the 'Start' dropdown.

This can potentially mislead users who are thinking on autopilot into running malware.

Instead, we should consider changing it to something like this:

This Lua script called the potentially malicious function '%s' and has been stopped.
If you're sure this script is safe, you can allow it to execute with elevated permissions by enabling 'Trusted Mode' from the 'Start' dropdown.`

Reproduction Steps

None

Expected behavior

None

Actual behavior

None

Regression?

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalThis issue contains a feature or change proposal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions