Skip to content

ScriptRuntimeException thrown from Table.ResolveMultipleKeys has incorrectly formatted error message #308

Description

@ThisIsNoZaku

These are lines 137-141 in Table.ResolveMultipleKeys:

if (vt == null)
    throw new ScriptRuntimeException("Key '{0}' did not point to anything");

if (vt.Type != DataType.Table)
    throw new ScriptRuntimeException("Key '{0}' did not point to a table");

As you can see, the messages have placeholders but are not formatted, showing messages like this : MoonSharp.Interpreter.ScriptRuntimeException : Key '{0}' did not point to anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions