You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project, I have a parameter in a function of type inventory_item. I accidentally passed in inventory_item (the class) instead of item (the resource). The editor gives a very error: Parser Error at (line, column): Invalid argument for "add_item()" function: argument 1 should be "inventory_item" but is "inventory_item" (screenshot below).
What I suggest is a more detailed message, like "... argument 1 should be of type "inventory_item" but is generalized class "inventory_item". This is by no means a wonderful error message, but something similar could possibly help someone, and avoid confusion.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In my project, I have a parameter in a function of type

inventory_item
. I accidentally passed ininventory_item
(the class) instead ofitem
(the resource). The editor gives a very error:Parser Error at (line, column): Invalid argument for "add_item()" function: argument 1 should be "inventory_item" but is "inventory_item"
(screenshot below).What I suggest is a more detailed message, like "... argument 1 should be of type "inventory_item" but is generalized class "inventory_item". This is by no means a wonderful error message, but something similar could possibly help someone, and avoid confusion.
Beta Was this translation helpful? Give feedback.
All reactions