Haxe-MagicArrayTools icon indicating copy to clipboard operation
Haxe-MagicArrayTools copied to clipboard

Add clarity to errors with incorrect fields.

Open SomeRanDev opened this issue 5 months ago • 0 comments

[ERROR] src/systems/AccountSync.hx:97: characters 16-34

 97 |     var size = orders[aid].size();
    |                ^^^^^^^^^^^^^^^^^^
    | `MagicArrayTools` function was used without calling `magiter` first. Please call `magiter` before running any other functions.

To help reduce user confusion, convert this error message to something that provides the underlying type:

Array<Int> has no field size.

If you're trying to use `MagicArrayTools.size`, you must first call `magiter`.

SomeRanDev avatar Jul 15 '25 13:07 SomeRanDev