Add prototype descriptor to error function

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Add prototype descriptor to error function

Post by PennyJim »

I think it would be useful to be able to tap into the prototype changes tracking and blame other mods, by blaming the prototype when intentionally calling error

It would be an additional function signature akin to defining the level. Instead of blaming a function calls n levels up, it can blame error("that prototype right there, officer.", "type", "name")


It may be a little niche, but I can see it being very useful in places where people keep blaming one mod for the problems of another (ala Quality)
Post Reply

Return to “Modding interface requests”