moonsharp icon indicating copy to clipboard operation
moonsharp copied to clipboard

ScriptRuntimeException thrown from Table.ResolveMultipleKeys has incorrectly formatted error message

Open ThisIsNoZaku opened this issue 3 years ago • 0 comments

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

ThisIsNoZaku avatar Jul 07 '22 20:07 ThisIsNoZaku